diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-07-30 23:16:41 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-07-30 23:41:19 -0300 |
commit | 811604f3f76294662854fbdbd3abc4e8e11d9685 (patch) | |
tree | c117d38961f73d787e58d9f8c7b8b7354cacf713 | |
parent | 72c96dea2de542feef692b4abce30282d6151d64 (diff) | |
download | rails-811604f3f76294662854fbdbd3abc4e8e11d9685.tar.gz rails-811604f3f76294662854fbdbd3abc4e8e11d9685.tar.bz2 rails-811604f3f76294662854fbdbd3abc4e8e11d9685.zip |
Avoid defining the test if it does not need to when not on JRuby
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index f3b439d51a..184cfc2220 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -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) + 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" |