Permalink
Browse files

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

  • Loading branch information...
carlosantoniodasilva committed Jul 31, 2014
1 parent 72c96de commit 811604f3f76294662854fbdbd3abc4e8e11d9685
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/generators/app_generator_test.rb
@@ -251,8 +251,8 @@ def test_config_jdbc_database
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"

0 comments on commit 811604f

Please sign in to comment.