public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
documentation fixes

git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@195 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
tsaleh (author)
Mon Aug 27 07:35:44 -0700 2007
commit  5caf04201a920c50c53d8ecf5f50fc33345e4977
tree    fbc62b1ca2fc97993c6a2f774b9c3301f738a5d0
parent  103377734c3b36a7457b1ac500ab107918687e0f
0
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@ Assertions:: Many common rails testing idioms have been distilled into a set of
0
 
0
 Stop killing your fingers with all of those underscores... Name your tests with plain sentences!
0
 
0
- class UserTest << Test::Unit
0
+ class UserTest << Test::Unit::TestCase
0
     context "A User instance" do
0
       setup do
0
         @user = User.find(:first)
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ module ThoughtBot # :nodoc:
0
     #
0
     # These helpers will test most of the validations and associations for your ActiveRecord models.
0
     #
0
- # class UserTest < Test::Unit
0
+ # class UserTest < Test::Unit::TestCase
0
     # should_require_attributes :name, :phone_number
0
     # should_not_allow_values_for :phone_number, "abcd", "1234"
0
     # should_allow_values_for :phone_number, "(123) 456-7890"
...
8
9
10
11
 
12
13
14
...
25
26
27
28
 
29
30
31
...
67
68
69
70
 
71
72
73
...
8
9
10
 
11
12
13
14
...
25
26
27
 
28
29
30
31
...
67
68
69
 
70
71
72
73
0
@@ -8,7 +8,7 @@ module ThoughtBot # :nodoc:
0
     #
0
     # A context block can contain setup, should, should_eventually, and teardown blocks.
0
     #
0
- # class UserTest << Test::Unit
0
+ # class UserTest << Test::Unit::TestCase
0
     # context "a User instance" do
0
     # setup do
0
     # @user = User.find(:first)
0
@@ -25,7 +25,7 @@ module ThoughtBot # :nodoc:
0
     # Contexts may be nested. Nested contexts run their setup blocks from out to in before each test.
0
     # They then run their teardown blocks from in to out after each test.
0
     #
0
- # class UserTest << Test::Unit
0
+ # class UserTest << Test::Unit::TestCase
0
     # context "a User instance" do
0
     # setup do
0
     # @user = User.find(:first)
0
@@ -67,7 +67,7 @@ module ThoughtBot # :nodoc:
0
       #
0
       # Example:
0
       #
0
- # class UserTest << Test::Unit
0
+ # class UserTest << Test::Unit::TestCase
0
       # should "return first user on find(:first)"
0
       # assert_equal users(:first), User.find(:first)
0
       # end

Comments

    No one has commented yet.