Ability to use byebug easily while developing/testing

This commit is contained in:
Gonzalo Rodriguez 2018-02-02 14:15:09 -03:00
parent c9cd0239a4
commit 2406435663
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1
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