Skip to content

Commit

Permalink
Add defaults to rspec matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-b committed Dec 16, 2015
1 parent a8380ef commit 10c319f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rocket_pants/rspec_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def self.normalise_urls(object)

# Converts it to JSON and back again.
def self.normalise_as_json(object, options = {})
options = RocketPants.default_serializer_options.reverse_merge(options)
options = options.reverse_merge(:compact => true) if object.is_a?(Array)
object = RocketPants::Respondable.normalise_object(object, options)
j = ActiveSupport::JSON
Expand Down

0 comments on commit 10c319f

Please sign in to comment.