1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #18149 from arthurnn/byebug_on_mri

Only add debugger/byebug if on MRI
This commit is contained in:
Sean Griffin 2014-12-22 13:31:30 -07:00
commit 569c674773
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ end
<% end -%>
<% end -%>
<% unless defined?(JRUBY_VERSION) -%>
<% if RUBY_ENGINE == 'ruby' -%>
# To use a debugger
<%- if RUBY_VERSION < '2.0.0' -%>
# gem 'debugger', group: [:development, :test]

View file

@ -340,7 +340,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_inclusion_of_a_debugger
run_generator
if defined?(JRUBY_VERSION)
if defined?(JRUBY_VERSION) || RUBY_ENGINE == 'rbx'
assert_file "Gemfile" do |content|
assert_no_match(/byebug/, content)
assert_no_match(/debugger/, content)