Permalink
Browse files

Added clarification to README

Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information...
1 parent c53e720 commit fdb4b5135ece418651957ffa9033b54ba5303805 @schof schof committed with qrush May 27, 2009
Showing with 14 additions and 12 deletions.
  1. +14 −12 README.rdoc
View
@@ -75,22 +75,24 @@ Makes TDD so much easier.
=== Controller Tests (Shoulda::Controller::Macros)
Macros to test the most common controller patterns...
+
+ class PostsControllerTest < ActionController::TestCase
+ context "on GET to :show for first record" do
+ setup do
+ get :show, :id => 1
+ end
- context "on GET to :show for first record" do
- setup do
- get :show, :id => 1
- end
-
- should_assign_to :user
- should_respond_with :success
- should_render_template :show
- should_not_set_the_flash
+ should_assign_to :user
+ should_respond_with :success
+ should_render_template :show
+ should_not_set_the_flash
- should "do something else really cool" do
- assert_equal 1, assigns(:user).id
+ should "do something else really cool" do
+ assert_equal 1, assigns(:user).id
+ end
end
end
-
+
=== Helpful Assertions (Shoulda::Assertions)
More to come here, but have fun with what's there.

0 comments on commit fdb4b51

Please sign in to comment.