Sha256: 787de2fe40aca393984f3f9b07bfd21981e386a40e1f5062774ad99f1cb1a055
Contents?: true
Size: 918 Bytes
Versions: 2
Compression:
Stored size: 918 Bytes
Contents
namespace :pact do desc "Verifies the pact files configured in the pact_helper.rb against this service provider." task :verify do require 'pact/provider' require 'pact/pact_task_helper' include PactTaskHelper handle_verification_failure do pact_verifications = Pact.configuration.pact_verifications verification_configs = pact_verifications.collect { | pact_verification | { :uri => pact_verification.uri }} Pact::Provider::PactSpecRunner.new(verification_configs).run end end desc "Verifies the pact at the given URI against this service provider." task 'verify:at', :pact_uri do | t, args | require 'pact/provider' require 'pact/pact_task_helper' include PactTaskHelper handle_verification_failure do puts "Verifying pact at uri #{args[:pact_uri]}" Pact::Provider::PactSpecRunner.new([{uri: args[:pact_uri]}]).run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact-1.0.7 | lib/tasks/pact.rake |
pact-1.0.6 | lib/tasks/pact.rake |