Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (21 sloc) 1.093 kb
f854dd5 @joelmoss Setup guard and updated bundle
authored
1 # A sample Guardfile
2 # More info at https://github.com/guard/guard#readme
3
4 guard 'bundler' do
5 watch('Gemfile')
6 # Uncomment next line if Gemfile contain `gemspec' command
7 # watch(/^.+\.gemspec/)
8 end
9
10 guard 'rspec', :version => 2 do
11 watch(%r{^spec/.+_spec\.rb$})
12 watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
13 watch('spec/spec_helper.rb') { "spec" }
14
15 # Rails example
16 watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
17 watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
18 watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
19 watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
20 watch('config/routes.rb') { "spec/routing" }
21 watch('app/controllers/application_controller.rb') { "spec/controllers" }
22 # Capybara request specs
23 watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
53fa590 @joelmoss Created UsersController
authored
24 end
Something went wrong with that request. Please try again.