Skip to content

Instantly share code, notes, and snippets.

@pkqk
Created October 28, 2013 15:29
Show Gist options
  • Save pkqk/7198891 to your computer and use it in GitHub Desktop.
Save pkqk/7198891 to your computer and use it in GitHub Desktop.
how to do an rspec, put your specs in spec/*_spec.rb and put this in your Rakefile then you can `rake spec` to run them
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = "spec/**/*_spec.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment