Skip to content

Commit 67ef5a6

Browse files
committed
fix: put metadata on the correct decorator
1 parent c1607f1 commit 67ef5a6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/pact/consumer_contract/interaction_decorator.rb

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def as_json options = {}
1717
hash[:providerState] = interaction.provider_state if interaction.provider_state
1818
hash[:request] = decorate_request.as_json(options)
1919
hash[:response] = decorate_response.as_json(options)
20-
hash[:metadata] = interaction.metadata
2120
fix_all_the_things hash
2221
end
2322

lib/pact/mock_service/interaction_decorator.rb

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def to_hash
2828
hash[:providerState] = interaction.provider_state if interaction.provider_state
2929
hash[:request] = decorate_request.as_json
3030
hash[:response] = decorate_response.as_json
31+
hash[:metadata] = interaction.metadata
3132
hash
3233
end
3334

0 commit comments

Comments
 (0)