Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test added to check default option with jruby. It should generate

sqlite3 bases app
  • Loading branch information...
commit 2771b91db88922ae1bc875eddbce219c31aa7b1e 1 parent ecddc65
@arunagw authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/test/generators/app_generator_test.rb
View
8 railties/test/generators/app_generator_test.rb
@@ -193,6 +193,14 @@ def test_config_jdbc_database
assert_file "Gemfile", /^gem\s+["']activerecord-jdbc-adapter["']$/
end
+ def test_config_jdbc_database_when_no_option_given
+ if defined?(JRUBY_VERSION)
+ run_generator([destination_root])
+ assert_file "config/database.yml", /sqlite3/
+ assert_file "Gemfile", /^gem\s+["']activerecord-jdbcsqlite3-adapter["']$/
+ end
+ end
+
def test_config_database_is_not_added_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_file "config/database.yml"
Please sign in to comment.
Something went wrong with that request. Please try again.