We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d48e4c commit 5cce3b2Copy full SHA for 5cce3b2
lib/pact/mock_service/app.rb
@@ -40,7 +40,7 @@ def shutdown
40
def setup_stub stub_pactfile_paths
41
interactions = stub_pactfile_paths.collect do | pactfile_path |
42
$stdout.puts "INFO: Loading interactions from #{pactfile_path}"
43
- hash_interactions = JSON.parse(File.read(pactfile_path))['interactions']
+ hash_interactions = JSON.parse(Pact::PactFile.read(pactfile_path))['interactions']
44
hash_interactions.collect { | hash | Interaction.from_hash(hash) }
45
end.flatten
46
@session.set_expected_interactions interactions
0 commit comments