Sha256: e26a8071e5fed1de03a20311d2953cdb0a7fb43529ce6d7ef4285cd671bb7cbf

Contents?: true

Size: 692 Bytes

Versions: 2

Compression:

Stored size: 692 Bytes

Contents

# -*- encoding : utf-8 -*-
require_relative '../../spec/coveralls_helper'
require 'aruba'
require 'aruba/cucumber'
require 'json_spec/cucumber'
require 'aruba/jruby' if RUBY_PLATFORM == 'java'
require 'pacto/test_helper'

Pacto.configuration.hide_deprecations = true

Before do
  # Given I successfully run `bundle install` can take a while.
  @aruba_timeout_seconds = RUBY_PLATFORM == 'java' ? 60 : 10
end

class PactoWorld
  include Pacto::TestHelper
end

World do
  PactoWorld.new
end

Around do | _scenario, block |
  WebMock.allow_net_connect!
  world = self || PactoWorld.new
  world.with_pacto(port: 8000, live: true, backend_host: 'http://localhost:5000') do
    block.call
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 features/support/env.rb
pacto-0.4.0.rc2 features/support/env.rb