From 5caf04201a920c50c53d8ecf5f50fc33345e4977 Mon Sep 17 00:00:00 2001 From: tsaleh Date: Mon, 27 Aug 2007 14:35:44 +0000 Subject: [PATCH] documentation fixes git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@195 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa --- README | 2 +- lib/shoulda/active_record_helpers.rb | 2 +- lib/shoulda/context.rb | 6 +++--- test/rails_root/vendor/plugins/shoulda | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) delete mode 120000 test/rails_root/vendor/plugins/shoulda diff --git a/README b/README index 93364ea8..bdc632fd 100644 --- a/README +++ b/README @@ -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) diff --git a/lib/shoulda/active_record_helpers.rb b/lib/shoulda/active_record_helpers.rb index 08bea62f..4aa92fc9 100644 --- a/lib/shoulda/active_record_helpers.rb +++ b/lib/shoulda/active_record_helpers.rb @@ -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" diff --git a/lib/shoulda/context.rb b/lib/shoulda/context.rb index 12d820e3..61b8782c 100644 --- a/lib/shoulda/context.rb +++ b/lib/shoulda/context.rb @@ -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 diff --git a/test/rails_root/vendor/plugins/shoulda b/test/rails_root/vendor/plugins/shoulda deleted file mode 120000 index 11a54ed3..00000000 --- a/test/rails_root/vendor/plugins/shoulda +++ /dev/null @@ -1 +0,0 @@ -../../../../ \ No newline at end of file