Sha256: 0a2848d4979384ad35206f68488637987d7fefa77b9d461d47fd4d7d2f23404b

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 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'
require_relative '../../spec/pacto/dummy_server'

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
  include Pacto::DummyServer::JRubyWorkaroundHelper
end

World do
  PactoWorld.new
end

Around do | _scenario, block |
  # This is a cucumber bug (see cucumber #640)
  world = self || PactoWorld.new
  world.run_pacto do
    Bundler.with_clean_env do
      block.call
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pacto-0.4.0.rc1 features/support/env.rb