Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 811604f3f76294662854fbdbd3abc4e8e11d9685 1 parent 72c96de
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/generators/app_generator_test.rb
View
4 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"
Please sign in to comment.
Something went wrong with that request. Please try again.