1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

documentation fixes

git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@195 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
This commit is contained in:
tsaleh 2007-08-27 14:35:44 +00:00
parent 103377734c
commit 5caf04201a
4 changed files with 5 additions and 6 deletions

2
README
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
class UserTest << Test::Unit::TestCase
context "A User instance" do
setup do
@user = User.find(:first)

View file

@ -4,7 +4,7 @@ module ThoughtBot # :nodoc:
#
# These helpers will test most of the validations and associations for your ActiveRecord models.
#
# class UserTest < Test::Unit
# class UserTest < Test::Unit::TestCase
# should_require_attributes :name, :phone_number
# should_not_allow_values_for :phone_number, "abcd", "1234"
# should_allow_values_for :phone_number, "(123) 456-7890"

View file

@ -8,7 +8,7 @@ module ThoughtBot # :nodoc:
#
# A context block can contain setup, should, should_eventually, and teardown blocks.
#
# class UserTest << Test::Unit
# class UserTest << Test::Unit::TestCase
# context "a User instance" do
# setup do
# @user = User.find(:first)
@ -25,7 +25,7 @@ module ThoughtBot # :nodoc:
# Contexts may be nested. Nested contexts run their setup blocks from out to in before each test.
# They then run their teardown blocks from in to out after each test.
#
# class UserTest << Test::Unit
# class UserTest << Test::Unit::TestCase
# context "a User instance" do
# setup do
# @user = User.find(:first)
@ -67,7 +67,7 @@ module ThoughtBot # :nodoc:
#
# Example:
#
# class UserTest << Test::Unit
# class UserTest << Test::Unit::TestCase
# should "return first user on find(:first)"
# assert_equal users(:first), User.find(:first)
# end

View file

@ -1 +0,0 @@
../../../../