diff options
author | Yuki Nishijima <mail@yukinishijima.net> | 2015-02-08 17:09:12 -0800 |
---|---|---|
committer | Yuki Nishijima <mail@yukinishijima.net> | 2015-02-08 17:09:12 -0800 |
commit | f5c27446bfc112043d833148446aeb7d72dedd8e (patch) | |
tree | c1102f4dc60d51ad324ce265fabe0a9048126e2f /railties/test | |
parent | b6dd0c4ddebf5e7aab0a669915cb349ec65e5b88 (diff) | |
download | rails-f5c27446bfc112043d833148446aeb7d72dedd8e.tar.gz rails-f5c27446bfc112043d833148446aeb7d72dedd8e.tar.bz2 rails-f5c27446bfc112043d833148446aeb7d72dedd8e.zip |
Remove warning from generator named base test
This removes the following warning:
railties/test/generators/named_base_test.rb:9: warning: method redefined; discarding old pluralize_table_names
activesupport/lib/active_support/core_ext/class/attribute.rb:86: warning: previous definition of pluralize_table_names was here
railties/test/generators/named_base_test.rb:9: warning: method redefined; discarding old pluralize_table_names=
activesupport/lib/active_support/core_ext/class/attribute.rb:83: warning: previous definition of pluralize_table_names= was here
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/named_base_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/railties/test/generators/named_base_test.rb b/railties/test/generators/named_base_test.rb index 4199e00b0d..3ec71065ff 100644 --- a/railties/test/generators/named_base_test.rb +++ b/railties/test/generators/named_base_test.rb @@ -2,16 +2,6 @@ require 'generators/generators_test_helper' require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator' require 'mocha/setup' # FIXME: stop using mocha -# Mock out what we need from AR::Base. -module ActiveRecord - class Base - class << self - attr_accessor :pluralize_table_names - end - self.pluralize_table_names = true - end -end - class NamedBaseTest < Rails::Generators::TestCase include GeneratorsTestHelper tests Rails::Generators::ScaffoldControllerGenerator |