lib/pact/mock_service/app.rb in pact-mock_service-2.6.4 vs lib/pact/mock_service/app.rb in pact-mock_service-2.7.0
- old
+ new
@@ -38,10 +38,10 @@
end
def setup_stub stub_pactfile_paths
interactions = stub_pactfile_paths.collect do | pactfile_path |
$stdout.puts "INFO: Loading interactions from #{pactfile_path}"
- hash_interactions = JSON.parse(File.read(pactfile_path))['interactions']
+ hash_interactions = JSON.parse(Pact::PactFile.read(pactfile_path))['interactions']
hash_interactions.collect { | hash | Interaction.from_hash(hash) }
end.flatten
@session.set_expected_interactions interactions
end