Skip to content

Commit 5cce3b2

Browse files
committed
feat: allow pact-stub-server to read pact from an http uri
1 parent 5d48e4c commit 5cce3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pact/mock_service/app.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def shutdown
4040
def setup_stub stub_pactfile_paths
4141
interactions = stub_pactfile_paths.collect do | pactfile_path |
4242
$stdout.puts "INFO: Loading interactions from #{pactfile_path}"
43-
hash_interactions = JSON.parse(File.read(pactfile_path))['interactions']
43+
hash_interactions = JSON.parse(Pact::PactFile.read(pactfile_path))['interactions']
4444
hash_interactions.collect { | hash | Interaction.from_hash(hash) }
4545
end.flatten
4646
@session.set_expected_interactions interactions

0 commit comments

Comments
 (0)