We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d661e3 commit caaa67bCopy full SHA for caaa67b
lib/pact/consumer_contract/http_consumer_contract_parser.rb
@@ -4,13 +4,7 @@ class HttpConsumerContractParser
4
5
def call(hash)
6
hash = symbolize_keys(hash)
7
- interactions = if hash[:interactions]
8
- hash[:interactions].collect { |hash| Interaction.from_hash(hash)}
9
- elsif hash[:messages]
10
- hash[:messages].collect { |hash| Message.from_hash(hash)}
11
- else
12
- [] # or raise an error?
13
- end
+ interactions = hash[:interactions].collect { |hash| Interaction.from_hash(hash)}
14
15
ConsumerContract.new(
16
:consumer => ServiceConsumer.from_hash(hash[:consumer]),
0 commit comments