gem_tasks/cucumber.rake in cucumber-1.2.1 vs gem_tasks/cucumber.rake in cucumber-1.2.2

- old
+ new

@@ -1,15 +1,17 @@ require 'cucumber/rake/task' require 'cucumber/platform' class Cucumber::Rake::Task def set_profile_for_current_ruby - self.profile = if(Cucumber::JRUBY) + self.profile = if Cucumber::JRUBY Cucumber::WINDOWS ? 'jruby_win' : 'jruby' - elsif(Cucumber::WINDOWS_MRI) + elsif Cucumber::WINDOWS_MRI 'windows_mri' - elsif(Cucumber::RUBY_1_9) + elsif Cucumber::RUBY_1_9 'ruby_1_9' + elsif Cucumber::RUBY_2_0 + 'ruby_2_0' end end end Cucumber::Rake::Task.new(:features) do |t|