begin require 'rspec' require 'rspec/core/rake_task' desc "Run the specs" RSpec::Core::RakeTask.new do |t| t.verbose = false t.rspec_opts = [ '--require', 'spec_helper', '--color', '--format', 'Fuubar' ] end task :default => [:spec] rescue LoadError STDERR.puts "failed to load rspec. please add gem 'rspec' to your Gemfile in order to use rspec" end