From 1924cff93402160f4db4eea5c1b14bb9d1f85d91 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 16 Apr 2010 13:14:52 -0700 Subject: Fix Active Model observer tests --- activemodel/test/cases/observing_test.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activemodel/test/cases/observing_test.rb') diff --git a/activemodel/test/cases/observing_test.rb b/activemodel/test/cases/observing_test.rb index e23bda0528..63686843b6 100644 --- a/activemodel/test/cases/observing_test.rb +++ b/activemodel/test/cases/observing_test.rb @@ -121,13 +121,11 @@ class ObserverTest < ActiveModel::TestCase foo = Foo.new FooObserver.instance.stub = stub FooObserver.instance.stub.expects(:event_with).with(foo) - Foo.send(:changed) Foo.send(:notify_observers, :on_spec, foo) end test "skips nonexistent observer event" do foo = Foo.new - Foo.send(:changed) Foo.send(:notify_observers, :whatever, foo) end end -- cgit v1.2.3