aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2013-09-07 22:50:54 +0200
committerPiotr Sarnacki <drogus@gmail.com>2013-09-13 18:02:25 +0200
commit47ac67b8d4f77e22ce1cae5c7bf836b0d6325d1e (patch)
treed954217147e544d6259711710256d5126fcf0baf /railties/test
parentca50043a7ad95825b3830d97294b14b665a7d698 (diff)
downloadrails-47ac67b8d4f77e22ce1cae5c7bf836b0d6325d1e.tar.gz
rails-47ac67b8d4f77e22ce1cae5c7bf836b0d6325d1e.tar.bz2
rails-47ac67b8d4f77e22ce1cae5c7bf836b0d6325d1e.zip
Don't require using application_name before options
Before this commit options for `rails new` and `rails plugin new` had to be passed in a strict order, trying to execute a following command: rails new -J path/to/app resulted in an error. This commit fixes the situation and allows to pass path to app anywhere after `new`
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/shared_generator_tests.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb
index 369a0ee46c..7184639d23 100644
--- a/railties/test/generators/shared_generator_tests.rb
+++ b/railties/test/generators/shared_generator_tests.rb
@@ -46,11 +46,6 @@ module SharedGeneratorTests
assert_no_file "test"
end
- def test_options_before_application_name_raises_an_error
- content = capture(:stderr){ run_generator(["--pretend", destination_root]) }
- assert_match(/Options should be given after the \w+ name. For details run: rails( plugin new)? --help\n/, content)
- end
-
def test_name_collision_raises_an_error
reserved_words = %w[application destroy plugin runner test]
reserved_words.each do |reserved|