diff --git a/lib/json_spec/matchers/include_json.rb b/lib/json_spec/matchers/include_json.rb index 39fa057..5826261 100644 --- a/lib/json_spec/matchers/include_json.rb +++ b/lib/json_spec/matchers/include_json.rb @@ -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