Permalink
Browse files

doc patch for should_change and should_not_change

  • Loading branch information...
1 parent 650ec22 commit 18ab33cfc73471975190fe6e7240f105ada563fc @croaky croaky committed Sep 30, 2008
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/shoulda/macros.rb
View
@@ -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
#
@@ -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)

0 comments on commit 18ab33c

Please sign in to comment.