Add Guard testing support

While developing rack-attack, run tests continuously with `bundle exec
guard`
This commit is contained in:
Aaron Suggs 2015-12-18 08:54:19 -05:00
parent 6789b28c7b
commit bd27009f43
2 changed files with 17 additions and 2 deletions

View file

@ -1,4 +1,9 @@
source "https://rubygems.org"
source 'https://rubygems.org'
gemspec
#gem 'debugger', platform: 'ruby'
group :development do
gem 'pry'
gem 'guard' # NB: this is necessary in newer versions
gem 'guard-minitest'
end

10
Guardfile Normal file
View file

@ -0,0 +1,10 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard :minitest do
# with Minitest::Spec
watch(%r{^spec/(.*)_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
end