spec/tasks.rake in pact-provider-proxy-1.2.0 vs spec/tasks.rake in pact-provider-proxy-2.0.0
- old
+ new
@@ -3,15 +3,10 @@
Pact::ProxyVerificationTask.new :monolith do | task |
task.pact_url './spec/support/pact.json', :pact_helper => './spec/support/custom_pact_helper'
task.provider_base_url 'http://localhost:9292'
end
-Pact::ProxyVerificationTask.new :monolith_dynamic_pact_helper do | task |
- task.pact_url './spec/support/pact.json'
- task.provider_base_url 'http://localhost:9292'
-end
-
Pact::ProxyVerificationTask.new :monolith_no_pact_helper do | task |
task.pact_url './spec/support/pact-with-no-provider-states.json'
task.provider_base_url 'http://localhost:9292'
end
@@ -31,15 +26,21 @@
task 'create_pact_helper' do
FileUtils.cp './spec/fixtures/template_pact_helper.rb', './spec/support/pact_helper.rb'
end
+task 'create_pact_helper_that_should_not_be_loaded' do
+ FileUtils.cp './spec/fixtures/do_not_load_pact_helper.rb', './spec/support/pact_helper.rb'
+end
+
task 'create_custom_pact_helper' do
FileUtils.cp './spec/fixtures/template_pact_helper.rb', './spec/support/custom_pact_helper.rb'
end
-task 'pact:verify:monolith' => ['pact:test:spawn_test_monolith', 'create_custom_pact_helper']
-task 'pact:verify:monolith_dynamic_pact_helper' => ['pact:test:spawn_test_monolith','create_pact_helper']
-task 'pact:verify:monolith_no_pact_helper' => ['pact:test:spawn_test_monolith', 'delete_pact_helper']
+task 'pact:verify:monolith' => ['pact:test:spawn_test_monolith', 'delete_pact_helper', 'create_custom_pact_helper']
+task 'pact:verify:monolith_no_pact_helper' => ['pact:test:spawn_test_monolith', 'delete_pact_helper', 'create_pact_helper_that_should_not_be_loaded']
-task :spec => ['pact:verify:monolith_no_pact_helper','pact:verify:monolith','pact:verify:monolith_dynamic_pact_helper']
-task :default => [:spec]
\ No newline at end of file
+
+task :spec => ['pact:verify:monolith_no_pact_helper','pact:verify:monolith']
+task :default => [:spec]
+
+