Skip to content

Commit

Permalink
fix: put metadata on the correct decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 16, 2020
1 parent c1607f1 commit 67ef5a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/pact/consumer_contract/interaction_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/pact/mock_service/interaction_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 67ef5a6

Please sign in to comment.