Permalink
Browse files

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

sqlite3 bases app
  • Loading branch information...
1 parent ecddc65 commit 2771b91db88922ae1bc875eddbce219c31aa7b1e @arunagw arunagw committed Jun 22, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 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"

0 comments on commit 2771b91

Please sign in to comment.