mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Only add debugger/byebug if on MRI
This commit is contained in:
parent
58b7567bda
commit
0bb73f03e4
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ end
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% unless defined?(JRUBY_VERSION) -%>
|
<% if RUBY_ENGINE == 'ruby' -%>
|
||||||
# To use a debugger
|
# To use a debugger
|
||||||
<%- if RUBY_VERSION < '2.0.0' -%>
|
<%- if RUBY_VERSION < '2.0.0' -%>
|
||||||
# gem 'debugger', group: [:development, :test]
|
# gem 'debugger', group: [:development, :test]
|
||||||
|
|
|
@ -340,7 +340,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
||||||
|
|
||||||
def test_inclusion_of_a_debugger
|
def test_inclusion_of_a_debugger
|
||||||
run_generator
|
run_generator
|
||||||
if defined?(JRUBY_VERSION)
|
if defined?(JRUBY_VERSION) || RUBY_ENGINE == 'rbx'
|
||||||
assert_file "Gemfile" do |content|
|
assert_file "Gemfile" do |content|
|
||||||
assert_no_match(/byebug/, content)
|
assert_no_match(/byebug/, content)
|
||||||
assert_no_match(/debugger/, content)
|
assert_no_match(/debugger/, content)
|
||||||
|
|
Loading…
Reference in a new issue