aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-30 23:16:41 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-30 23:41:19 -0300
commit811604f3f76294662854fbdbd3abc4e8e11d9685 (patch)
treec117d38961f73d787e58d9f8c7b8b7354cacf713 /railties
parent72c96dea2de542feef692b4abce30282d6151d64 (diff)
downloadrails-811604f3f76294662854fbdbd3abc4e8e11d9685.tar.gz
rails-811604f3f76294662854fbdbd3abc4e8e11d9685.tar.bz2
rails-811604f3f76294662854fbdbd3abc4e8e11d9685.zip
Avoid defining the test if it does not need to when not on JRuby
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/app_generator_test.rb4
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"