File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
require 'pact/consumer/mock_service/set_location'
4
4
require 'pact/mock_service/run'
5
5
require 'pact/mock_service/server/webrick_request_monkeypatch'
6
+ require 'pact/specification_version'
6
7
7
8
module Pact
8
9
module MockService
@@ -50,14 +51,15 @@ def call_shutdown_hooks
50
51
end
51
52
52
53
def service_options
54
+ # dummy pact_specification_version is needed to stop RequestHandlers blowing up
53
55
service_options = {
54
56
pact_dir : options [ :pact_dir ] ,
55
57
log_level : options [ :log_level ] ,
56
58
unique_pact_file_names : options [ :unique_pact_file_names ] ,
57
59
consumer : options [ :consumer ] ,
58
60
provider : options [ :provider ] ,
59
61
cors_enabled : options [ :cors ] ,
60
- pact_specification_version : options [ :pact_specification_version ] ,
62
+ pact_specification_version : Pact :: SpecificationVersion :: NIL_VERSION . to_s ,
61
63
pactfile_write_mode : options [ :pact_file_write_mode ] ,
62
64
stub_pactfile_paths : options [ :stub_pactfile_paths ]
63
65
}
You can’t perform that action at this time.
0 commit comments