Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test to verify that therubyrhino isn't included when JRuby isn't …

…used
  • Loading branch information...
commit 55afc7dc609b6b2b7f7ce37537c0de5e4db8ca6b 1 parent 3e55928
@guilleiguaran guilleiguaran authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 railties/test/generators/app_generator_test.rb
View
6 railties/test/generators/app_generator_test.rb
@@ -210,9 +210,13 @@ def test_generator_if_skip_sprockets_is_given
end
def test_inclusion_of_therubyrhino_under_jruby
+ run_generator([destination_root])
if defined?(JRUBY_VERSION)
- run_generator([destination_root])
assert_file "Gemfile", /gem\s+["']therubyrhino["']$/
+ else
+ assert_file "Gemfile" do |content|
+ assert_no_match(/gem\s+["']therubyrhino["']$/, content)
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.