mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix "warning: method redefined; discarding old test_scaffold_plural_names"
Since warning was issued due to duplication of test names, fix the test name to a meaningful name. This fixes following warnings: ``` railties/test/generators/named_base_test.rb:141: warning: method redefined; discarding old test_scaffold_plural_names railties/test/generators/named_base_test.rb:62: warning: previous definition of test_scaffold_plural_names was here ```
This commit is contained in:
parent
325c06fbc4
commit
8154c34805
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class NamedBaseTest < Rails::Generators::TestCase
|
|||
ActiveRecord::Base.pluralize_table_names = original_pluralize_table_names
|
||||
end
|
||||
|
||||
def test_scaffold_plural_names
|
||||
def test_namespaced_scaffold_plural_names
|
||||
g = generator ["admin/foo"]
|
||||
assert_name g, "admin/foos", :controller_name
|
||||
assert_name g, %w(admin), :controller_class_path
|
||||
|
@ -69,7 +69,7 @@ class NamedBaseTest < Rails::Generators::TestCase
|
|||
assert_name g, "admin.foos", :controller_i18n_scope
|
||||
end
|
||||
|
||||
def test_scaffold_plural_names_as_ruby
|
||||
def test_namespaced_scaffold_plural_names_as_ruby
|
||||
g = generator ["Admin::Foo"]
|
||||
assert_name g, "Admin::Foos", :controller_name
|
||||
assert_name g, %w(admin), :controller_class_path
|
||||
|
|
Loading…
Reference in a new issue