Sha256: f3edbeb33f8aac1a589e4d2dc1d63ad5a4f13e5b7a7b9d37bb6d4dca764d87bc

Contents?: true

Size: 789 Bytes

Versions: 44

Compression:

Stored size: 789 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
  step 'I cd to "project"'
end

Version data entries

44 entries across 34 versions & 6 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/gems/simplecov-0.7.1/features/support/env.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/simplecov-0.7.1/features/support/env.rb
challah-1.0.0 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-1.0.0.beta3 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/support/env.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/simplecov-0.7.1/features/support/env.rb
challah-1.0.0.beta2 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-1.0.0.beta vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-0.9.1.beta.3 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
devise_sociable-0.1.0 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-0.9.1.beta vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-0.9.0 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/simplecov-0.6.4/features/support/env.rb
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.6.4/features/support/env.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.6.4/features/support/env.rb
challah-0.8.3 vendor/bundle/gems/simplecov-0.6.4/features/support/env.rb
challah-0.8.3 vendor/bundle/gems/simplecov-0.7.1/features/support/env.rb
simplecov-0.7.1 features/support/env.rb