Permalink
Browse files

Informatively fail if cucumber isn't installed

  • Loading branch information...
1 parent 3e94758 commit da65e95b57fcb3e9555b91f70aea7e37d3e89372 @gabebw gabebw committed May 29, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
View
@@ -2,7 +2,12 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
-require 'cucumber/rake/task'
+begin
+ require 'cucumber/rake/task'
+rescue LoadError
+ $stderr.puts "Please install cucumber: `gem install cucumber`"
+ exit 1
+end
desc 'Default: run unit tests.'
task :default => [:test, "cucumber:rails:all"]

0 comments on commit da65e95

Please sign in to comment.