1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix generator test broken when rails new was added.

This commit is contained in:
José Valim 2010-06-08 16:05:19 +02:00
parent aa8b56f5d6
commit 9d33c2ab6f

View file

@ -70,9 +70,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
def test_name_collision_raises_an_error
reserved_words = %w[generate g console c server s dbconsole db
application destroy benchmarker profiler
plugin runner test]
reserved_words = %w[application destroy plugin runner test]
reserved_words.each do |reserved|
content = capture(:stderr){ run_generator [File.join(destination_root, reserved)] }
assert_equal "Invalid application name #{reserved}. Please give a name which does not match one of the reserved rails words.\n", content