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

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

Add test to verify that therubyrhino isn't included when JRuby isn't used
This commit is contained in:
Yehuda Katz 2011-12-09 21:25:02 -08:00
commit aace38ae09

View file

@ -215,9 +215,13 @@ class AppGeneratorTest < Rails::Generators::TestCase
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