Permalink
Browse files

Fixed warning for already defined constant 'Cucumber::Rake::Task::BIN…

…ARY'.
  • Loading branch information...
1 parent acb7379 commit 833650a6bdad00b1b67f9044fcb5561f2ce17016 @ngty ngty committed Nov 3, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/generators/cucumber/templates/lib/tasks/cucumber.rake
View
5 lib/generators/cucumber/templates/lib/tasks/cucumber.rake
@@ -1,6 +1,9 @@
require 'cucumber/rake/task'
-Cucumber::Rake::Task::BINARY = Merb.root / 'bin' / 'cucumber'
+unless Cucumber::Rake::Task.const_defined?('BINARY')
+ Cucumber::Rake::Task::BINARY = Merb.root / 'bin' / 'cucumber'
+end
+
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
end

0 comments on commit 833650a

Please sign in to comment.