Sha256: ce7b6def394140c93a3956c9a4c0d2e9b70abb45cac4a1406c35078a5c896a4b

Contents?: true

Size: 790 Bytes

Versions: 19

Compression:

Stored size: 790 Bytes

Contents

unless RUBY_VERSION =~ /1\.9/
  $stderr.puts "Sorry, Cucumber features are only meant to run on Ruby 1.9 for now :("
  exit 0
end

require 'bundler'
Bundler.setup
require 'aruba/cucumber'
require 'capybara/cucumber'

# Fake rack app for capybara that just returns the latest coverage report from aruba temp project dir
Capybara.app = lambda {|env|
  [200, {'Content-Type' => 'text/html'},
    [File.read(File.join(File.dirname(__FILE__), '../../tmp/aruba/project', 'coverage/index.html'))]]
}

Before do
  @aruba_timeout_seconds = 20
  this_dir = File.dirname(__FILE__)
  # Clean up and create blank state for fake project
  in_current_dir do
    FileUtils.rm_rf 'project'
    FileUtils.cp_r File.join(this_dir, '../../test/faked_project/'), 'project'
  end
  Given 'I cd to "project"'
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
challah-0.6.1 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.6.0 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.5.4 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.5.3 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.5.2 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.5.0 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.4.1 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.4.0 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.3.5 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.3.4 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.3.3 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.3.2 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.3.1 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.3.0 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.2.1 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
challah-0.2.0 vendor/bundle/gems/simplecov-0.5.4/features/support/env.rb
simplecov-0.5.4 features/support/env.rb
simplecov-0.5.3 features/support/env.rb
simplecov-0.5.2 features/support/env.rb