diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 14:23:45 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:53 +0100 |
commit | 2133495b8cdcb40a68a03aa786c4353031abe49e (patch) | |
tree | 0eacb22b97e5b53df1e14382b94269ddba58efe6 /railties/test/generators/app_generator_test.rb | |
parent | b6497d3b5a84ca5e7e15700419ddf44c096c57a2 (diff) | |
download | rails-2133495b8cdcb40a68a03aa786c4353031abe49e.tar.gz rails-2133495b8cdcb40a68a03aa786c4353031abe49e.tar.bz2 rails-2133495b8cdcb40a68a03aa786c4353031abe49e.zip |
Properly handle other databases in 'plugin new' generator
Diffstat (limited to 'railties/test/generators/app_generator_test.rb')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 42a49eb03c..ddd8272db6 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -53,11 +53,6 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_no_file "public/stylesheets/application.css" end - def test_invalid_database_option_raises_an_error - content = capture(:stderr){ run_generator([destination_root, "-d", "unknown"]) } - assert_match /Invalid value for \-\-database option/, content - end - def test_invalid_application_name_raises_an_error content = capture(:stderr){ run_generator [File.join(destination_root, "43-things")] } assert_equal "Invalid application name 43-things. Please give a name which does not start with numbers.\n", content |