spec/support/factories.rb in pact-support-1.7.2 vs spec/support/factories.rb in pact-support-1.8.0
- old
+ new
@@ -38,9 +38,14 @@
'response' => {
'status' => 200,
'body' => {a: 'response body'}
}
}
+
+ if hash.key?(:provider_states) || hash.key?('provider_states')
+ defaults.delete('provider_state')
+ end
+
Pact::Interaction.from_hash(stringify_keys(deep_merge(defaults, stringify_keys(hash))))
end
end
\ No newline at end of file