public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
doc patch for should_change and should_not_change
dancroak (author)
Mon Sep 29 23:20:59 -0700 2008
commit  18ab33cfc73471975190fe6e7240f105ada563fc
tree    149d199ee3eaa7ae67be8a0ce30ed21896b78882
parent  650ec229322a60e88ab7e07c2bb01040fadf8d07
...
12
13
14
15
16
17
18
 
19
20
21
...
57
58
59
60
61
62
63
 
64
65
66
...
12
13
14
 
 
 
 
15
16
17
18
...
54
55
56
 
 
 
 
57
58
59
60
0
@@ -12,10 +12,7 @@ module ThoughtBot # :nodoc:
0
       # Example:
0
       #
0
       # context "Creating a post"
0
- # setup do
0
- # Post.create
0
- # end
0
- #
0
+ # setup { Post.create }
0
       # should_change "Post.count", :by => 1
0
       # end
0
       #
0
@@ -57,10 +54,7 @@ module ThoughtBot # :nodoc:
0
       # Example:
0
       #
0
       # context "Updating a post"
0
- # setup do
0
- # @post.update_attributes(:title => "new")
0
- # end
0
- #
0
+ # setup { @post.update_attributes(:title => "new") }
0
       # should_not_change "Post.count"
0
       # end
0
       def should_not_change(expression)

Comments

    No one has commented yet.