lib/pact/consumer/interaction.rb in pact-0.1.35 vs lib/pact/consumer/interaction.rb in pact-0.1.37

- old
+ new

@@ -36,10 +36,11 @@ def to_json(options = {}) as_json.to_json(options) end def as_json_for_mock_service - {:response => Reification.from_term(response), :request => @request.as_json_with_options, :description => description } + {:response => Reification.from_term(response), :request => @request.as_json_with_options, :description => description }. + tap{ | hash | hash[:producer_state] = @producer_state if @producer_state } end def to_json_for_mock_service as_json_for_mock_service.to_json end