aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-05-10 14:11:59 -0700
committerPiotr Sarnacki <drogus@gmail.com>2012-05-10 17:37:12 -0700
commitb14d1cd8aefac1895f83139c00ce130e89277c9f (patch)
treea758d4ca6748d463408a8bb9a633b65e7fa70dd7 /railties/test/generators
parentfa21b73ebb8339ad388f149c817c433b6254d490 (diff)
downloadrails-b14d1cd8aefac1895f83139c00ce130e89277c9f.tar.gz
rails-b14d1cd8aefac1895f83139c00ce130e89277c9f.tar.bz2
rails-b14d1cd8aefac1895f83139c00ce130e89277c9f.zip
Failing test for #6251
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index 6c31b80c7d..51374e5f3f 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -236,6 +236,13 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
assert_no_file "test/dummy"
end
+ def test_creating_dummy_application_with_different_name
+ run_generator [destination_root, "--dummy_path", "spec/fake"]
+ assert_file "spec/fake"
+ assert_file "spec/fake/config/application.rb"
+ assert_no_file "test/dummy"
+ end
+
def test_creating_dummy_without_tests_but_with_dummy_path
run_generator [destination_root, "--dummy_path", "spec/dummy", "--skip-test-unit"]
assert_file "spec/dummy"