Skip to content

Commit 430fac8

Browse files
committed
Enable RSpec rerun with Guard.
1 parent fac8392 commit 430fac8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Guardfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
# A sample Guardfile
2-
# More info at https://github.com/guard/guard#readme
3-
4-
guard :rspec do
1+
guard :rspec, all_on_start: true, cmd: 'bundle exec rspec' do
52
watch(%r{^spec/.+_spec\.rb$})
63
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
74
watch('spec/spec_helper.rb') { "spec" }
85
end
96

10-
117
guard :rubocop do
128
watch(%r{.+\.rb$})
139
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }

0 commit comments

Comments
 (0)