Skip to content

Commit

Permalink
updated docs to match current API
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Maddox committed Jan 6, 2010
1 parent 129f9ad commit 51a38d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 51a38d8

Please sign in to comment.