Created
December 13, 2010 22:57
-
-
Save rymai/739757 to your computer and use it in GitHub Desktop.
When a controller file is modified, it will execute the associated:
- routing spec,
- controller spec,
- acceptance spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When a controller file is modified, it will execute the associated: | |
# - routing spec, | |
# - controller spec, | |
# - acceptance spec | |
guard 'rspec' do | |
watch(%r|app/controllers/(.*)_controller\.rb|) do |m| | |
["spec/routing/#{m[1]}_routing_spec.rb", | |
"spec/controllers/#{m[1]}_controller_spec.rb", | |
"spec/acceptance/#{m[1]}_spec.rb"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment