Sha256: 0354c6b6e830e15fd3faf0f7ef807b014b0bfb6687ffd890dd7c0b4e99bd5e4b

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

require 'pact/provider/proxy/tasks'

Pact::ProxyVerificationTask.new :monolith do | task |
 task.pact_url './spec/support/pact.json', :pact_helper => './spec/support/pact_helper'
 task.provider_base_url 'http://localhost:9292'
end

namespace :pact do
  namespace :test do
    task :spawn_test_monolith do
      require 'pact/consumer/app_manager'
      Pact::Consumer::AppManager.instance.register lambda { | env | [200, {}, ["Monolith!"]] }, 9292
      Pact::Consumer::AppManager.instance.spawn_all
    end
  end
end

task 'pact:verify:monolith' => 'pact:test:spawn_test_monolith'

task :spec => ['pact:verify:monolith']
task :default => [:spec]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-provider-proxy-0.0.2 spec/tasks.rake