Merge pull request #6076 from arunagw/build_fix_observed_classes

Build fix for observed_classes
This commit is contained in:
José Valim 2012-04-30 00:01:03 -07:00
commit 976b1709ba
1 changed files with 1 additions and 1 deletions

View File

@ -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