From 650ec229322a60e88ab7e07c2bb01040fadf8d07 Mon Sep 17 00:00:00 2001 From: Dan Croak Date: Tue, 30 Sep 2008 01:59:40 -0400 Subject: [PATCH] doc patch for before statements --- lib/shoulda/context.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/shoulda/context.rb b/lib/shoulda/context.rb index 8f6df28..5bf1d41 100644 --- a/lib/shoulda/context.rb +++ b/lib/shoulda/context.rb @@ -73,12 +73,12 @@ def should(name, options = {}, &blk) # == Before statements # - # Before statements are simply should statements that run before the current + # Before statements are should statements that run before the current # context's setup. These are especially useful when setting expectations. # # === Example: # - # class UserControllerTest << Test::Unit::TestCase + # class UserControllerTest < Test::Unit::TestCase # context "the index action" do # setup do # @users = [Factory(:user)] @@ -86,11 +86,8 @@ def should(name, options = {}, &blk) # end # # context "on GET" do - # setup do - # get :index - # end + # setup { get :index } # - # # normal should statement # should_respond_with :success # # # runs before "get :index"