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:
commit
aace38ae09
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue