lib/shoulda/context.rb in thoughtbot-shoulda-2.0.1 vs lib/shoulda/context.rb in thoughtbot-shoulda-2.0.2

- old
+ new

@@ -1,8 +1,8 @@ module Thoughtbot # :nodoc: module Shoulda - VERSION = '2.0.0' + VERSION = '2.0.2' class << self attr_accessor :contexts def contexts # :nodoc: @contexts ||= [] @@ -71,27 +71,24 @@ end end # == 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)] # User.stubs(:find).returns(@users) # end # # context "on GET" do - # setup do - # get :index - # end + # setup { get :index } # - # # normal should statement # should_respond_with :success # # # runs before "get :index" # before_should "find all users" do # User.expects(:find).with(:all).returns(@users)