Skip to content

Commit 96e2604

Browse files
thatguysimonbethesque
authored andcommitted
test: add expectations to make sure metadata: nil isn't stored in the pact (pact-foundation#119)
1 parent 811e3c1 commit 96e2604

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/features/write_pact_file_spec.rb

+9
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
expect(pact_json['interactions']).to_not include(
7070
include("description" => "a request for alligators")
7171
)
72+
expect(pact_json['interactions']).to_not include(
73+
include("metadata" => nil)
74+
)
7275
end
7376
end
7477

@@ -79,6 +82,9 @@
7982
expect(pact_json['interactions']).to include(
8083
include("description" => "a request for alligators")
8184
)
85+
expect(pact_json['interactions']).to_not include(
86+
include("metadata" => nil)
87+
)
8288
end
8389
end
8490

@@ -120,6 +126,9 @@
120126
expect(pact_json['interactions']).to_not include(
121127
include("description" => "a request for zebras")
122128
)
129+
expect(pact_json['interactions']).to_not include(
130+
include("metadata" => nil)
131+
)
123132
end
124133
end
125134

0 commit comments

Comments
 (0)