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

Avoid defining the test if it does not need to when not on JRuby

This commit is contained in:
Carlos Antonio da Silva 2014-07-30 23:16:41 -03:00
parent 72c96dea2d
commit 811604f3f7

View file

@ -251,8 +251,8 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_gem "activerecord-jdbc-adapter"
end
def test_config_jdbc_database_when_no_option_given
if defined?(JRUBY_VERSION)
def test_config_jdbc_database_when_no_option_given
run_generator
assert_file "config/database.yml", /sqlite3/
assert_gem "activerecord-jdbcsqlite3-adapter"