Sha256: 6243e17f9c1132e3a64db6478fba09496c5fba2c4a716fea408dadf5f8e07f04

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require 'pact'
require 'pact/pact_task_helper'


namespace :pact do

  include PactTaskHelper

	desc "Runs the specified pact file against the service provider"
  task :verify, :pact_uri do | t, args |
    require 'pact/provider/pact_spec_runner'
    puts "Using pact at uri #{args[:pact_uri]}"
    pact_spec_config = {uri: args[:pact_uri]}
    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.5 lib/tasks/pact.rake
pact-1.0.4 lib/tasks/pact.rake