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

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