Permalink
Switch branches/tags
v0.0.2 v0.0.1 deploy.2012-11-07.07-29 deploy.2012-11-07.06-37 deploy.2012-11-05.15-58 deploy.2012-11-01.14-40 deploy.2012-10-31.22-14 deploy.2012-10-31.22-11 deploy.2012-10-18.19-54 deploy.2012-10-18.19-53 deploy.2012-10-18.19-41 deploy.2012-10-18.16-51 deploy.2012-10-18.16-33 deploy.2012-10-18.16-29 deploy.2012-10-18.16-26 deploy.2012-10-15.23-49 deploy.2012-10-10.13-40 deploy.2012-10-05.00-32 deploy.2012-10-04.19-51 deploy.2012-10-03.23-27 deploy.2012-10-03.23-24 deploy.2012-09-27.14-12 deploy.2012-09-18.11-46 deploy.2012-09-15.13-56 deploy.2012-09-12.18-23 deploy.2012-09-11.15-00 deploy.2012-09-11.09-09 deploy.2012-09-10.15-20 deploy.2012-09-10.15-19 deploy.2012-09-10.12-25 deploy.2012-09-04.14-40 deploy.2012-09-04.10-42 deploy.2012-09-04.10-30 deploy.2012-08-28.15-09 deploy.2012-08-21.15-57 deploy.2012-08-20.12-12 deploy.2012-08-14.15-13 deploy.2012-08-09.11-41 deploy.2012-08-05.15-09 deploy.2012-08-03.14-12 deploy.2012-08-02.09-40 deploy.2012-07-31.23-46 deploy.2012-07-31.15-27 deploy.2012-07-27.13-29 deploy.2012-07-26.22-45 deploy.2012-07-26.22-11 deploy.2012-07-26.22-02 deploy.2012-07-26.16-13 deploy.2012-07-19.16-56 deploy.2012-07-17.16-23 deploy.2012-07-16.14-32 deploy.2012-07-16.13-32 deploy.2012-07-16.12-51 deploy.2012-06-19.12-06 deploy.2012-06-18.20-28 deploy.2012-06-18.12-40 deploy.2012-06-18.12-26 deploy.2012-06-18.12-25 deploy.2012-06-18.12-23 deploy.2012-06-18.12-22 deploy.2012-06-16.19-28 deploy.2012-06-11.10-49 deploy.2012-06-06.13-56 deploy.2012-05-28.21-40 deploy.2012-05-27.16-17 deploy.2012-05-27.15-30 deploy.2012-05-27.15-24 deploy.2012-05-27.15-11 deploy.2012-05-21.11-46 deploy.2012-05-21.10-56 deploy.2012-05-14.16-23 deploy.2012-05-06.16-14 deploy.2012-05-06.15-19 deploy.2012-05-06.15-15 deploy.2012-05-06.15-10 deploy.2012-05-06.15-04 deploy.2012-05-06.14-15 deploy.2012-05-05.19-30 deploy.2012-05-05.19-14 deploy.2012-05-05.18-23 deploy.2012-05-05.13-22 deploy.2012-05-05.10-02 deploy.2012-05-05.09-20 deploy.2012-05-03.14-48 deploy.2012-05-03.13-50 deploy.2012-05-03.11-39 deploy.2012-05-03.11-21 deploy.2012-05-03.10-58 deploy.2012-04-30.16-24 deploy.2012-04-30.14-38 deploy.2012-04-30.14-20 deploy.2012-04-30.14-11 deploy.2012-04-27.07-48 deploy.2012-04-19.11-27 deploy.2012-04-16.20-39 deploy.2012-04-16.19-41 deploy.2012-04-10.14-50 deploy.2012-04-10.13-56 deploy.2012-04-10.13-18 deploy.2012-03-28.15-58
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 1.14 KB
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'rspec', :version => 2 do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
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"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
# Capybara request specs
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
# Turnip features and steps
watch(%r{^spec/acceptance/(.+)\.feature$})
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end