Skip to content

Instantly share code, notes, and snippets.

@arwagner
Created October 21, 2011 00:02
Show Gist options
  • Save arwagner/1302751 to your computer and use it in GitHub Desktop.
Save arwagner/1302751 to your computer and use it in GitHub Desktop.
rspec spec exclusion
require 'rspec'
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:core) do |t|
t.rspec_opts = "-t ~foo"
end
describe "foo", :foo => true do
it "should be awesome" do
puts "foooooo!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment