Skip to content

Commit b5984cc

Browse files
committed
Cleanup Guardfile (Rails examples?)
1 parent a561ee8 commit b5984cc

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Guardfile

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,4 @@ guard 'rspec', :version => 1 do
55
watch(%r{^spec/.+_spec\.rb$})
66
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
77
watch('spec/spec_helper.rb') { "spec" }
8-
9-
# Rails example
10-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec" }
11-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12-
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"] }
13-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14-
watch('config/routes.rb') { "spec/routing" }
15-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
16-
17-
# Capybara request specs
18-
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
19-
20-
# Turnip features and steps
21-
watch(%r{^spec/acceptance/(.+)\.feature$})
22-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23-
end
24-
25-
26-
# Add files and commands to this file, like the example:
27-
# watch(%r{file/path}) { `command(s)` }
28-
#
29-
guard 'shell' do
30-
watch(/(.*).txt/) {|m| `tail #{m[0]}` }
318
end

0 commit comments

Comments
 (0)