Skip to content

Instantly share code, notes, and snippets.

@jparker
Created October 1, 2011 21:25
Show Gist options
  • Save jparker/1256677 to your computer and use it in GitHub Desktop.
Save jparker/1256677 to your computer and use it in GitHub Desktop.
require 'active_support/inflector'
guard 'rspec', :version => 2 do
# ...
# entries auto-generated after running "guard init rspec"
# ...
watch(%r{^spec/factories/(.+)\.rb$}) do |m|
%W[
spec/models/#{m[1].singularize}_spec.rb
spec/controllers/#{m[1]}_controller_spec.rb
spec/requests/#{m[1]}_spec.rb
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment