Sha256: b440c2e5df4d0130830eceaa585006f92a0f287fefee3a23d1f13e76eb5fea3f
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
require 'pact' require 'pact/pact_task_helper' include PactTaskHelper namespace :pact do desc "Runs the specified pact file against the service provider" task :verify, :pact_uri, :support_file do | t, args | puts 'BLSH' require 'pact/provider/pact_spec_runner' puts "Using pact at uri #{args[:pact_uri]}" puts "Using support file #{args[:support_file]}" pact_spec_config = {uri: args[:pact_uri], support_file: args[:support_file]} exit_status = Pact::Provider::PactSpecRunner.run([pact_spec_config]) fail failure_message if exit_status != 0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact-1.0.3 | lib/tasks/pact.rake |
pact-1.0.2 | lib/tasks/pact.rake |