Merge pull request #277 from grzuy/byebug

Ability to use byebug easily while developing/testing
This commit is contained in:
Gonzalo Rodriguez 2018-03-12 11:46:49 -03:00 committed by GitHub
commit 608e3b20d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ bin
*.gemfile.lock
.ruby-version
.ruby-gemset
.byebug_history

View file

@ -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

View file

@ -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