Skip to content

Commit

Permalink
fix: add missing require for pact matchers in query
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 23, 2018
1 parent 7ab6294 commit 927d3b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pact/consumer_contract/query_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def == other
end

def difference(other)
diff(query, other.query)
require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
Pact::Matchers.diff(query, other.query)
end

def query
Expand Down

0 comments on commit 927d3b9

Please sign in to comment.