lib/pact/provider/proxy/tasks/proxy_verification_task.rb in pact-provider-proxy-1.2.0 vs lib/pact/provider/proxy/tasks/proxy_verification_task.rb in pact-provider-proxy-2.0.0
- old
+ new
@@ -27,18 +27,10 @@
private
attr_reader :name
- def project_pact_helper_path
- begin
- Pact::Provider::PactHelperLocater.pact_helper_path
- rescue
- ''
- end
- end
-
def rake_task
namespace :pact do
desc "Verify running provider against the consumer pacts for #{name}"
task "verify:#{name}" do |t, args|
@@ -46,10 +38,10 @@
proxy_pact_helper = File.expand_path('../../proxy_pact_helper.rb', __FILE__)
exit_statuses = pact_spec_configs.collect do | config |
ENV['PACT_PROVIDER_BASE_URL'] = @provider_base_url
- ENV['PACT_PROJECT_PACT_HELPER'] = config[:pact_helper] || project_pact_helper_path
+ ENV['PACT_PROJECT_PACT_HELPER'] = config[:pact_helper]
Pact::Provider::Proxy::TaskHelper.execute_pact_verify config[:uri], proxy_pact_helper
end
Pact::Provider::Proxy::TaskHelper.handle_verification_failure do
exit_statuses.count{ | status | status != 0 }