Skip to content

Instantly share code, notes, and snippets.

@samnang
Created April 29, 2011 03:57
Show Gist options
  • Save samnang/947808 to your computer and use it in GitHub Desktop.
Save samnang/947808 to your computer and use it in GitHub Desktop.
Register RSpec rake's tasks
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
rescue LoadError
task :spec do
abort "Please run `bundle install` to install RSpec."
end
end
task :default => :spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment