Skip to content

Commit

Permalink
Fix include_json on excluded keys
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit committed Jan 29, 2014
1 parent 10079aa commit 438c13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json_spec/matchers/include_json.rb
Expand Up @@ -12,7 +12,7 @@ def initialize(expected_json = nil)
def matches?(actual_json)
raise "Expected included JSON not provided" if @expected_json.nil?

actual = exclude_keys(parse_json(actual_json, @path))
actual = parse_json(actual_json, @path)
expected = exclude_keys(parse_json(@expected_json))
included_in_json?( actual, expected )
end
Expand Down

0 comments on commit 438c13b

Please sign in to comment.