Skip to content

Commit

Permalink
test: add expectations to make sure metadata: nil isn't stored in the…
Browse files Browse the repository at this point in the history
… pact (#119)
  • Loading branch information
thatguysimon authored and bethesque committed Jan 27, 2020
1 parent 811e3c1 commit 96e2604
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/features/write_pact_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
expect(pact_json['interactions']).to_not include(
include("description" => "a request for alligators")
)
expect(pact_json['interactions']).to_not include(
include("metadata" => nil)
)
end
end

Expand All @@ -79,6 +82,9 @@
expect(pact_json['interactions']).to include(
include("description" => "a request for alligators")
)
expect(pact_json['interactions']).to_not include(
include("metadata" => nil)
)
end
end

Expand Down Expand Up @@ -120,6 +126,9 @@
expect(pact_json['interactions']).to_not include(
include("description" => "a request for zebras")
)
expect(pact_json['interactions']).to_not include(
include("metadata" => nil)
)
end
end

Expand Down

0 comments on commit 96e2604

Please sign in to comment.