aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorFlorian Thomas <flo@florianthomas.net>2013-04-19 00:06:02 -0300
committerFlorian Thomas <flo@florianthomas.net>2013-04-19 00:06:02 -0300
commit615a2cb0f66ac15bc24a000027262c4b2f4d86ac (patch)
treefd1e4cf3e59a41177cea7757e032c5b90d5c1a3e /guides
parentab819e5b10b121bd8b6eb2e04eb2c79c5b7f432a (diff)
downloadrails-615a2cb0f66ac15bc24a000027262c4b2f4d86ac.tar.gz
rails-615a2cb0f66ac15bc24a000027262c4b2f4d86ac.tar.bz2
rails-615a2cb0f66ac15bc24a000027262c4b2f4d86ac.zip
MiniTest::Unit is used instead of Test::Unit
Diffstat (limited to 'guides')
-rw-r--r--guides/source/testing.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 4c0a61bc5e..b655bb2307 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -159,9 +159,10 @@ class PostTest < ActiveSupport::TestCase
The `PostTest` class defines a _test case_ because it inherits from `ActiveSupport::TestCase`. `PostTest` thus has all the methods available from `ActiveSupport::TestCase`. You'll see those methods a little later in this guide.
-Any method defined within a `Test::Unit` test case that begins with `test` (case sensitive) is simply called a test. So, `test_password`, `test_valid_password` and `testValidPassword` all are legal test names and are run automatically when the test case is run.
+Any method defined within a class inherited from `MiniTest::Unit::TestCase`
+(which is the superclass of `ActiveSupport::TestCase`) that begins with `test` (case sensitive) is simply called a test. So, `test_password`, `test_valid_password` and `testValidPassword` all are legal test names and are run automatically when the test case is run.
-Rails adds a `test` method that takes a test name and a block. It generates a normal `Test::Unit` test with method names prefixed with `test_`. So,
+Rails adds a `test` method that takes a test name and a block. It generates a normal `MiniTest::Unit` test with method names prefixed with `test_`. So,
```ruby
test "the truth" do