From f56d4de29c1d6f09f29797fb2fdfb9e010a9c2e2 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Mon, 30 Apr 2012 11:03:25 +0530 Subject: [PATCH] Build fix for observed_classes introduced here bad44e4f8f690039bd0db92ac25f10af536c6e71 --- activerecord/test/cases/lifecycle_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/lifecycle_test.rb b/activerecord/test/cases/lifecycle_test.rb index 75e5dfa49b0..0b78f2e46b1 100644 --- a/activerecord/test/cases/lifecycle_test.rb +++ b/activerecord/test/cases/lifecycle_test.rb @@ -137,7 +137,7 @@ class LifecycleTest < ActiveRecord::TestCase def test_auto_observer topic_observer = TopicaAuditor.instance assert_nil TopicaAuditor.observed_class - assert_equal [Topic], TopicaAuditor.instance.observed_classes.to_a + assert_equal [Topic], TopicaAuditor.observed_classes.to_a topic = Topic.find(1) assert_equal topic.title, topic_observer.topic.title