Skip to content

Instantly share code, notes, and snippets.

View pturley's full-sized avatar

Patrick Turley pturley

View GitHub Profile
@BenHall
BenHall / RSpec_Suite.rb
Created March 3, 2010 23:35
Break your RSpec specs into multiple suites for rapid feedback
# http://jakescruggs.blogspot.com/2007/03/wrapping-context-in-context-in-rspec.html
SPEC_SUITES = [
{ :id => :acl, :title => 'access control', :files => %w(spec/controllers/**/acl_spec.rb) },
{ :id => :amazon, :title => 'Amazon libraries', :dirs => %w(spec/lib/amazon) }
]
namespace :spec do
namespace :suite do
SPEC_SUITES.each do |suite|