mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user