未验证 提交 0bb73f03 编写于 作者: A Arthur Neves

Only add debugger/byebug if on MRI

上级 58b7567b
......@@ -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]
......
......@@ -340,7 +340,7 @@ def test_inclusion_of_jbuilder
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册