mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Merge pull request #155 from ktheory/guard-testing
Development testing improvements with guard and pry
This commit is contained in:
commit
bbf8a488ab
3 changed files with 19 additions and 4 deletions
9
Gemfile
9
Gemfile
|
|
@ -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
10
Guardfile
Normal 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
|
||||
|
||||
|
|
@ -8,9 +8,9 @@ require 'active_support'
|
|||
require "rack/attack"
|
||||
|
||||
begin
|
||||
require 'debugger'
|
||||
require 'pry'
|
||||
rescue LoadError
|
||||
#nothing to do here
|
||||
#nothing to do here
|
||||
end
|
||||
|
||||
class MiniTest::Spec
|
||||
|
|
|
|||
Loading…
Reference in a new issue