diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-04 13:53:37 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-04 13:53:37 +0100 |
commit | 79376e3c9d0838ff1562e0a46239c6b0337058b3 (patch) | |
tree | 38b8304b4f70ca19ead6cbee6544d5a2f0d5a2e7 /railties/test | |
parent | ab14e3f8628da81535c09eab3ba48d06725c6769 (diff) | |
download | rails-79376e3c9d0838ff1562e0a46239c6b0337058b3.tar.gz rails-79376e3c9d0838ff1562e0a46239c6b0337058b3.tar.bz2 rails-79376e3c9d0838ff1562e0a46239c6b0337058b3.zip |
Update Gemfile to use latest bundler config.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 93ef67818d..76579adb26 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -74,6 +74,13 @@ class AppGeneratorTest < Rails::Generators::TestCase def test_config_database_is_added_by_default run_generator assert_file "config/database.yml", /sqlite3/ + assert_file "Gemfile", /^gem "sqlite3-ruby", :require => "sqlite3"$/ + end + + def test_config_another_database + run_generator([destination_root, "-d", "mysql"]) + assert_file "config/database.yml", /mysql/ + assert_file "Gemfile", /^gem "mysql"$/ end def test_config_database_is_not_added_if_skip_activerecord_is_given |