Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated docs to match current API

  • Loading branch information...
commit 51a38d845c9ac155b7dabafc4ae48f36c9a44a81 1 parent 129f9ad
@patmaddox authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.