Sha256: 1a0419d1af7eb0b065c180dd45c1888a9fbeff06897504fa7d5f832807798810

Contents?: true

Size: 749 Bytes

Versions: 5

Compression:

Stored size: 749 Bytes

Contents

require 'cucumber/rake/task'
require 'cucumber/platform'

class Cucumber::Rake::Task
  def set_profile_for_current_ruby
    self.profile = if Cucumber::JRUBY
      Cucumber::WINDOWS ? 'jruby_win' : 'jruby'
    elsif Cucumber::WINDOWS_MRI
      'windows_mri'
    elsif Cucumber::RUBY_1_8_7
      'ruby_1_8_7'
    elsif Cucumber::RUBY_1_9
      'ruby_1_9'
    elsif Cucumber::RUBY_2_0
      'ruby_2_0'
    elsif Cucumber::RUBY_2_1
      'ruby_2_1'
    elsif Cucumber::RUBY_2_2
      'ruby_2_2'
    end
  end
end

Cucumber::Rake::Task.new(:features) do |t|
  t.fork = true
  t.set_profile_for_current_ruby
end

Cucumber::Rake::Task.new(:legacy_features) do |t|
  t.fork = true
  t.profile = :legacy
end

task :cucumber => [:features, :legacy_features]

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/gem_tasks/cucumber.rake
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/gem_tasks/cucumber.rake
cucumber-1.3.20 gem_tasks/cucumber.rake
cucumber-1.3.19 gem_tasks/cucumber.rake
cucumber-1.3.18 gem_tasks/cucumber.rake