diff options
author | Zachary Scott <e@zzak.io> | 2014-12-22 03:23:23 -0800 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-12-22 03:23:23 -0800 |
commit | 2d224a6b6765b350ce508257836a04b9f85159cb (patch) | |
tree | 8919486ace55281c800118970fcea75f1b31cbce | |
parent | d6fc5af1dffcd45d8d00b3cf57a87ac5a21285c8 (diff) | |
download | rails-2d224a6b6765b350ce508257836a04b9f85159cb.tar.gz rails-2d224a6b6765b350ce508257836a04b9f85159cb.tar.bz2 rails-2d224a6b6765b350ce508257836a04b9f85159cb.zip |
We may only look at some of the methods available from TestCase [ci skip]
-rw-r--r-- | guides/source/testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 3c15f428a2..5eea4b7c38 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -181,7 +181,7 @@ By requiring this file, `test_helper.rb` the default configuration to run our te class ArticleTest < ActiveSupport::TestCase ``` -The `ArticleTest` class defines a _test case_ because it inherits from `ActiveSupport::TestCase`. `ArticleTest` thus has all the methods available from `ActiveSupport::TestCase`. You'll see those methods a little later in this guide. +The `ArticleTest` class defines a _test case_ because it inherits from `ActiveSupport::TestCase`. `ArticleTest` thus has all the methods available from `ActiveSupport::TestCase`. Later in this guide, you'll see some of the methods it gives you. Any method defined within a class inherited from `Minitest::Test` (which is the superclass of `ActiveSupport::TestCase`) that begins with `test_` (case sensitive) is simply called a test. So, `test_password` and `test_valid_password` are legal test names and are run automatically when the test case is run. |