Skip to content

Commit

Permalink
doc patch for should_change and should_not_change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Sep 30, 2008
1 parent 650ec22 commit 18ab33c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/shoulda/macros.rb
Expand Up @@ -12,10 +12,7 @@ module Macros
# Example:
#
# context "Creating a post"
# setup do
# Post.create
# end
#
# setup { Post.create }
# should_change "Post.count", :by => 1
# end
#
Expand Down Expand Up @@ -57,10 +54,7 @@ def should_change(expression, options = {})
# Example:
#
# context "Updating a post"
# setup do
# @post.update_attributes(:title => "new")
# end
#
# setup { @post.update_attributes(:title => "new") }
# should_not_change "Post.count"
# end
def should_not_change(expression)
Expand Down

0 comments on commit 18ab33c

Please sign in to comment.