Permalink
Browse files

Promoted 'features' task to default rake tasks

  • Loading branch information...
1 parent e6d0298 commit 643a73cc40f6d6201be469a8a2156f3af3e2369d @kennethkalmer committed Sep 11, 2013
Showing with 5 additions and 12 deletions.
  1. +1 −1 Rakefile
  2. +4 −11 tasks/cucumber.rake
View
@@ -4,4 +4,4 @@ require "bundler/gem_tasks"
Dir['tasks/**/*.rake'].each { |t| load t }
# TODO - want other tests/tasks run by default? Add them to the list
-task :default => [:spec] #, :features]
+task :default => [:spec, :features]
View
@@ -1,13 +1,6 @@
-begin
- require 'cucumber/rake/task'
+require 'cucumber/rake/task'
- Cucumber::Rake::Task.new(:features) do |t|
- t.fork = true
- t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
- end
-rescue LoadError
- desc 'Cucumber rake task not available'
- task :features do
- abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
- end
+Cucumber::Rake::Task.new(:features) do |t|
+ t.fork = true
+ t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
end

0 comments on commit 643a73c

Please sign in to comment.