Skip to content

Commit

Permalink
- Enable rakefile to load w/o cucumber
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan McGeary <[email protected]>
  • Loading branch information
zenspider authored and rmm5t committed Sep 15, 2010
1 parent bcdf8c7 commit acb71a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'cucumber/rake/task'
begin
require 'cucumber/rake/task'
rescue LoadError
warn "couldn't load cucumber, skipping"
end

$LOAD_PATH.unshift("lib")
require 'shoulda/version'
Expand Down Expand Up @@ -53,7 +57,7 @@ namespace :cucumber do
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
t.profile = 'rails3'
end
end
end rescue nil

desc "Run the cucumber features in both Rails 2 and 3"
task :cucumber => ["cucumber:rails2", "cucumber:rails3"]
Expand Down

0 comments on commit acb71a6

Please sign in to comment.