aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-19 09:22:05 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-19 09:22:06 -0300
commit3e7070622af7b6efe9eb86c2275b2ad895bd5510 (patch)
tree72d437a56f453f8e50ca778069e00ed8c0c98606 /railties
parent573448f0114a9fe1c80cfb6b84ced842fa4ea63a (diff)
downloadrails-3e7070622af7b6efe9eb86c2275b2ad895bd5510.tar.gz
rails-3e7070622af7b6efe9eb86c2275b2ad895bd5510.tar.bz2
rails-3e7070622af7b6efe9eb86c2275b2ad895bd5510.zip
Remove delegated methods from generators test case
`class_attribute` already generates instance readers/writers by default, so there's no need to add delegation methods. Removes some "method redefined" warnings.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/test_case.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_case.rb b/railties/lib/rails/generators/test_case.rb
index 508e221c60..ff9cf0087e 100644
--- a/railties/lib/rails/generators/test_case.rb
+++ b/railties/lib/rails/generators/test_case.rb
@@ -31,7 +31,6 @@ module Rails
include FileUtils
class_attribute :destination_root, :current_path, :generator_class, :default_arguments
- delegate :destination_root, :current_path, :generator_class, :default_arguments, :to => :'self.class'
# Generators frequently change the current path using +FileUtils.cd+.
# So we need to store the path at file load and revert back to it after each test.