Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3925 from guilleiguaran/extra-test-for-therubyrhino

Add test to verify that therubyrhino isn't included when JRuby isn't used
  • Loading branch information...
commit aace38ae09e7a9495d8ab8e73c69a3c14fdbdabd 2 parents 7fc0964 + 55afc7d
@wycats wycats 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
@@ -215,9 +215,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.