File tree 3 files changed +6
-13
lines changed
3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 3
3
module Pact
4
4
class FormDiffer
5
5
6
- extend Matchers
7
-
8
6
def self . call expected , actual , options = { }
9
- diff to_hash ( expected ) , to_hash ( actual ) , options
7
+ require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
8
+ ::Pact ::Matchers . diff to_hash ( expected ) , to_hash ( actual ) , options
10
9
end
11
10
12
11
def self . to_hash form_body
@@ -29,6 +28,5 @@ def self.decode_www_form string
29
28
hash [ key ] << value
30
29
end
31
30
end
32
-
33
31
end
34
32
end
Original file line number Diff line number Diff line change 1
1
module Pact
2
2
class JsonDiffer
3
3
4
- extend Matchers
5
-
6
4
# Delegates to https://github.com/pact-foundation/pact-support/blob/master/lib/pact/matchers/matchers.rb#L25
7
5
def self . call expected , actual , options = { }
8
- diff expected , actual , options
6
+ require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
7
+ ::Pact ::Matchers . diff expected , actual , options
9
8
end
10
-
11
-
12
9
end
13
10
end
Original file line number Diff line number Diff line change 1
- require 'pact/matchers/difference'
2
1
3
2
module Pact
4
3
class TextDiffer
5
4
6
- extend Matchers
7
-
8
5
def self . call expected , actual , options = { }
9
- diff expected , actual , options
6
+ require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
7
+ ::Pact ::Matchers . diff expected , actual , options
10
8
end
11
9
12
10
end
You can’t perform that action at this time.
0 commit comments