diff --git a/lib/pact/consumer_contract/interaction_decorator.rb b/lib/pact/consumer_contract/interaction_decorator.rb index e9597f8..d997af9 100644 --- a/lib/pact/consumer_contract/interaction_decorator.rb +++ b/lib/pact/consumer_contract/interaction_decorator.rb @@ -17,7 +17,6 @@ def as_json options = {} hash[:providerState] = interaction.provider_state if interaction.provider_state hash[:request] = decorate_request.as_json(options) hash[:response] = decorate_response.as_json(options) - hash[:metadata] = interaction.metadata fix_all_the_things hash end diff --git a/lib/pact/mock_service/interaction_decorator.rb b/lib/pact/mock_service/interaction_decorator.rb index 3c5fb29..0ae0eb6 100644 --- a/lib/pact/mock_service/interaction_decorator.rb +++ b/lib/pact/mock_service/interaction_decorator.rb @@ -28,6 +28,7 @@ def to_hash hash[:providerState] = interaction.provider_state if interaction.provider_state hash[:request] = decorate_request.as_json hash[:response] = decorate_response.as_json + hash[:metadata] = interaction.metadata hash end