Permalink
Browse files

Merge pull request #13216 from arunagw/plugin-gemfile-jruby

Skipping debugger from plugin Gemfile for JRuby
  • Loading branch information...
2 parents 6413fde + f1a05e7 commit 747c616aa78ebc0fecc01123c6b9623f970d26bb @rafaelfranca rafaelfranca 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 747c616

Please sign in to comment.