提交 f1a05e74 编写于 作者: A Arun Agrawal

Skipping debugger from plugin Gemfile for JRuby

上级 6413fdeb
......@@ -39,5 +39,7 @@ end
<% end -%>
<% end -%>
<% unless defined?(JRUBY_VERSION) -%>
# To use debugger
# gem 'debugger'
<% end -%>
......@@ -58,6 +58,17 @@ def test_generating_test_files_in_full_mode
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
end
def test_inclusion_of_debugger
run_generator [destination_root, '--full']
if defined?(JRUBY_VERSION)
assert_file "Gemfile" do |content|
assert_no_match(/debugger/, content)
end
else
assert_file "Gemfile", /# gem 'debugger'/
end
end
def test_generating_test_files_in_full_mode_without_unit_test_files
run_generator [destination_root, "-T", "--full"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册