Sha256: 0db8a155a73f1cc519d1a9eb652861af7340201df4a4dc289fb659b900847b46

Contents?: true

Size: 749 Bytes

Versions: 35

Compression:

Stored size: 749 Bytes

Contents

ENV['FORCE_COLOR'] = 'true'
require 'aruba/api'
require 'aruba/cucumber'

# Monkey patch aruba to filter out some stuff
module Aruba::Api
  alias __all_stdout all_stdout
  
  def all_stdout
    unrandom(__all_stdout)
  end

  def unrandom(out)
    out = out.gsub(/#{Dir.pwd}\/tmp\/aruba/, '.') # Remove absolute paths
    out = out.gsub(/^\d+m\d+\.\d+s$/, '0m0.012s') # Make duration predictable
    out = out.gsub(/Coverage report generated for Cucumber Features to #{Dir.pwd}\/coverage.*\n$/, '') # Remove SimpleCov message
  end
end

Before do
  # Make sure bin/cucumber runs with SimpleCov enabled
  # set_env('SIMPLECOV', 'true')
  
  # Set a longer timeout for aruba
  @aruba_timeout_seconds = 15
end

After do
  terminate_background_jobs
end

Version data entries

35 entries across 33 versions & 8 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/features/support/env.rb
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/features/support/env.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/features/support/env.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/features/support/env.rb
cucumber-1.2.5 features/support/env.rb
cucumber-1.2.3 features/support/env.rb
cucumber-1.2.2 features/support/env.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/features/support/env.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/features/support/env.rb
casecumber-1.2.1.cb2 features/support/env.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/features/support/env.rb
cucumber-1.2.1 features/support/env.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/support/env.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/features/support/env.rb
cucumber-1.2.0 features/support/env.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/support/env.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/support/env.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/support/env.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/support/env.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/support/env.rb