From 51a38d845c9ac155b7dabafc4ae48f36c9a44a81 Mon Sep 17 00:00:00 2001 From: Pat Maddox Date: Wed, 6 Jan 2010 13:27:55 -0800 Subject: [PATCH] updated docs to match current API --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index d733dc4..5e04688 100644 --- a/README +++ b/README @@ -30,7 +30,7 @@ You can spec the Person class in complete isolation. # Run only a portion of code with certain observers turned on it "should register a name change with the person observer turned on" do - Person.with_observers(:person_observer) do + ActiveRecord::Observer.with_observers(:person_observer) do lambda { @person.update_attribute :name, "Don Juan Demarco" }.should change(NameChange, :count).by(1) end