mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Merge pull request #277 from grzuy/byebug
Ability to use byebug easily while developing/testing
This commit is contained in:
commit
608e3b20d1
3 changed files with 10 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@ bin
|
|||
*.gemfile.lock
|
||||
.ruby-version
|
||||
.ruby-gemset
|
||||
.byebug_history
|
||||
|
|
|
|||
|
|
@ -41,4 +41,9 @@ Gem::Specification.new do |s|
|
|||
#
|
||||
# See https://github.com/guard/guard-minitest/pull/131
|
||||
s.add_development_dependency 'guard'
|
||||
|
||||
# byebug only works with MRI
|
||||
if RUBY_ENGINE == "ruby"
|
||||
s.add_development_dependency 'byebug'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ rescue LoadError
|
|||
#nothing to do here
|
||||
end
|
||||
|
||||
if RUBY_ENGINE == "ruby"
|
||||
require "byebug"
|
||||
end
|
||||
|
||||
class MiniTest::Spec
|
||||
|
||||
include Rack::Test::Methods
|
||||
|
|
|
|||
Loading…
Reference in a new issue