aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
authorJosh Susser <josh@hasmanythrough.com>2011-11-29 09:14:21 -0800
committerJosh Susser <josh@hasmanythrough.com>2011-11-29 09:14:21 -0800
commitc347b3c06c2867badce5e22ecfbed3e972960c29 (patch)
treee7a20c133a5688ce3a7f51c171f89d7f7dd34137 /activerecord/test/cases/associations_test.rb
parent124c97fbe201f810d77f807ce69f37148e903c44 (diff)
downloadrails-c347b3c06c2867badce5e22ecfbed3e972960c29.tar.gz
rails-c347b3c06c2867badce5e22ecfbed3e972960c29.tar.bz2
rails-c347b3c06c2867badce5e22ecfbed3e972960c29.zip
don't change class definition in test case
Diffstat (limited to 'activerecord/test/cases/associations_test.rb')
-rw-r--r--activerecord/test/cases/associations_test.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb
index 0f75029215..efe71d1771 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -286,12 +286,6 @@ class GeneratedMethodsTest < ActiveRecord::TestCase
end
def test_model_method_overrides_association_method
- Post.class_eval <<-"RUBY"
- has_one :first_comment, :class_name => 'Comment', :order => 'id ASC'
- def first_comment
- super.body
- end
- RUBY
assert_equal(comments(:greetings).body, posts(:welcome).first_comment)
end
end