Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests added when no option is given with #jruby. It should generate
sqlite3 based app
  • Loading branch information
arunagw committed Jun 22, 2011
1 parent b2a19ad commit 3534ea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions railties/test/generators/app_generator_test.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 3534ea8

Please sign in to comment.