1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Skipping debugger from plugin Gemfile for JRuby
This commit is contained in:
Rafael Mendonça França 2013-12-06 07:52:20 -08:00
commit 747c616aa7
2 changed files with 13 additions and 0 deletions

View file

@ -39,5 +39,7 @@ end
<% end -%> <% end -%>
<% end -%> <% end -%>
<% unless defined?(JRUBY_VERSION) -%>
# To use debugger # To use debugger
# gem 'debugger' # gem 'debugger'
<% end -%>

View file

@ -58,6 +58,17 @@ class PluginGeneratorTest < Rails::Generators::TestCase
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/ assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
end 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 def test_generating_test_files_in_full_mode_without_unit_test_files
run_generator [destination_root, "-T", "--full"] run_generator [destination_root, "-T", "--full"]