diff options
author | Sean Linsley <xovatdev@gmail.com> | 2015-05-05 11:47:33 -0500 |
---|---|---|
committer | Sean Linsley <xovatdev@gmail.com> | 2015-05-05 11:47:33 -0500 |
commit | 672ae710802a007e8e8dc065606efbde7554c4a6 (patch) | |
tree | 85fb71ab05dee6b7205f9a70e69cc2430a2ed9e0 /railties/test/generators/shared_generator_tests.rb | |
parent | 3ed6d2f3528ae2f2c656ee8bdc9bc07c643c3e25 (diff) | |
download | rails-672ae710802a007e8e8dc065606efbde7554c4a6.tar.gz rails-672ae710802a007e8e8dc065606efbde7554c4a6.tar.bz2 rails-672ae710802a007e8e8dc065606efbde7554c4a6.zip |
list reserved words in generator error
Diffstat (limited to 'railties/test/generators/shared_generator_tests.rb')
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index 68f07f29d7..3bcf3894ce 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -56,7 +56,7 @@ module SharedGeneratorTests reserved_words = %w[application destroy plugin runner test] reserved_words.each do |reserved| content = capture(:stderr){ run_generator [File.join(destination_root, reserved)] } - assert_match(/Invalid \w+ name #{reserved}. Please give a name which does not match one of the reserved rails words.\n/, content) + assert_match(/Invalid \w+ name #{reserved}. Please give a name which does not match one of the reserved rails words: \["application", "destroy", "plugin", "runner", "test"\]\n/, content) end end |