Fixed misleading typos in subclassing documentation.

This commit is contained in:
James Adam 2009-01-06 18:18:39 +00:00 committed by Ryan McGeary
parent 1f535f17d5
commit 0c47c5110c
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ Assertions:: Many common rails testing idioms have been distilled into a set of
Stop killing your fingers with all of those underscores... Name your tests with plain sentences!
class UserTest << Test::Unit::TestCase
class UserTest < Test::Unit::TestCase
context "A User instance" do
setup do
@user = User.find(:first)

View File

@ -29,7 +29,7 @@ module Shoulda
#
# === Example:
#
# class UserTest << Test::Unit::TestCase
# class UserTest < Test::Unit::TestCase
#
# def setup
# @user = User.new("John", "Doe")
@ -118,7 +118,7 @@ module Shoulda
#
# A context block can contain setup, should, should_eventually, and teardown blocks.
#
# class UserTest << Test::Unit::TestCase
# class UserTest < Test::Unit::TestCase
# context "A User instance" do
# setup do
# @user = User.find(:first)
@ -135,7 +135,7 @@ module Shoulda
# Contexts may be nested. Nested contexts run their setup blocks from out to in before each
# should statement. They then run their teardown blocks from in to out after each should statement.
#
# class UserTest << Test::Unit::TestCase
# class UserTest < Test::Unit::TestCase
# context "A User instance" do
# setup do
# @user = User.find(:first)