Browse files

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.
  • Loading branch information...
1 parent 573448f commit 3e7070622af7b6efe9eb86c2275b2ad895bd5510 @carlosantoniodasilva carlosantoniodasilva committed May 19, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 railties/lib/rails/generators/test_case.rb
@@ -31,7 +31,6 @@ class TestCase < ActiveSupport::TestCase
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
# So we need to store the path at file load and revert back to it after each test.

0 comments on commit 3e70706

Please sign in to comment.