Permalink
Browse files

Tests added when no option is given with #jruby. It should generate

sqlite3 based app
  • Loading branch information...
1 parent b2a19ad commit 3534ea8d50638c32b8e7fb46d1d3767912f7b480 @arunagw arunagw committed Jun 22, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/test/generators/app_generator_test.rb
@@ -160,6 +160,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_generator_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_file "config/database.yml"

0 comments on commit 3534ea8

Please sign in to comment.