Permalink
Browse files

Skipping debugger from plugin Gemfile for JRuby

  • Loading branch information...
1 parent 6413fde commit f1a05e741d19ec7b5366c2136ffda9e03dcdcc12 @arunagw arunagw committed Dec 6, 2013
@@ -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"]

0 comments on commit f1a05e7

Please sign in to comment.