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:
parent
aa8b56f5d6
commit
9d33c2ab6f
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue