lib/pact/mock_service/run.rb in pact-mock_service-2.10.0 vs lib/pact/mock_service/run.rb in pact-mock_service-2.10.1
- old
+ new
@@ -57,10 +57,10 @@
log_level: options[:log_level],
unique_pact_file_names: options[:unique_pact_file_names],
consumer: options[:consumer],
provider: options[:provider],
cors_enabled: options[:cors],
- pact_specification_version: Pact::SpecificationVersion::NIL_VERSION.to_s,
+ pact_specification_version: options[:pact_specification_version] || Pact::SpecificationVersion::NIL_VERSION.to_s,
pactfile_write_mode: options[:pact_file_write_mode],
stub_pactfile_paths: options[:stub_pactfile_paths]
}
service_options[:log_file] = open_log_file if options[:log]
service_options