Skip to content

Commit 618b0a6

Browse files
committed
Adds Guard with RSpec/RuboCop
1 parent 8969c05 commit 618b0a6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ group :development, :test do
88
gem 'cookiejar'
99
gem 'rack-contrib'
1010
gem 'rubocop', '~> 0.20.1'
11+
gem 'guard'
12+
gem 'guard-rspec'
13+
gem 'guard-rubocop'
1114
end
1215

1316
platforms :rbx do

Guardfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard :rspec do
5+
watch(%r{^spec/.+_spec\.rb$})
6+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7+
watch('spec/spec_helper.rb') { "spec" }
8+
end
9+
10+
11+
guard :rubocop do
12+
watch(%r{.+\.rb$})
13+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
14+
end

0 commit comments

Comments
 (0)