1
0
Fork 0
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:
Arthur Neves 2014-12-22 15:02:02 -05:00
parent 58b7567bda
commit 0bb73f03e4
No known key found for this signature in database
GPG key ID: 04A390FB1E433E17
2 changed files with 2 additions and 2 deletions

View file

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

View file

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