Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Enable rakefile to load w/o cucumber

Signed-off-by: Ryan McGeary <ryanongit@mcgeary.org>
  • Loading branch information...
commit acb71a69827d4f04555069da0784bc0e79e2d777 1 parent bcdf8c7
Ryan Davis zenspider authored rmm5t committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 Rakefile
8 Rakefile
View
@@ -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'
@@ -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"]
Please sign in to comment.
Something went wrong with that request. Please try again.