Sha256: 662710eea39d8ef10079fd30134500490a5d6ab544eff28c0d22444f71545333

Contents?: true

Size: 833 Bytes

Versions: 80

Compression:

Stored size: 833 Bytes

Contents

require 'pact/mock_service/interactions/candidate_interactions'

module Pact
  module MockService
    module Interactions
      class ActualInteractions

        attr_reader :matched_interactions, :interaction_mismatches, :unexpected_requests

        def initialize
          clear
        end

        # For testing, sigh
        def clear
          @matched_interactions = []
          @interaction_mismatches = []
          @unexpected_requests = []
        end

        def register_matched interaction
          @matched_interactions << interaction
        end

        def register_unexpected_request request
          @unexpected_requests << request
        end

        def register_interaction_mismatch interaction_mismatch
          @interaction_mismatches << interaction_mismatch
        end

      end
    end
  end
end

Version data entries

80 entries across 80 versions & 2 rubygems

Version Path
pact-mock_service-2.6.3 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.6.2 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.6.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.5.4 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.5.3 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.5.1 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.4.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.3.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.2.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.1.1.pre.alpha.2 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.1.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.0.1 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-2.0.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-1.2.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-1.1.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-1.0.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-0.12.1 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-0.12.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-0.11.0 lib/pact/mock_service/interactions/actual_interactions.rb
pact-mock_service-0.10.2 lib/pact/mock_service/interactions/actual_interactions.rb