Skip to content

Commit

Permalink
Checking no debugger on JRuby
Browse files Browse the repository at this point in the history
fixes tests for JRuby
  • Loading branch information
arunagw committed Nov 29, 2013
1 parent b782731 commit 69bc214
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion railties/test/generators/app_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,13 @@ def test_inclusion_of_jbuilder

def test_inclusion_of_debugger
run_generator
assert_file "Gemfile", /# gem 'debugger'/
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_inclusion_of_lazy_loaded_sdoc
Expand Down

0 comments on commit 69bc214

Please sign in to comment.