aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/testing.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-12-11 00:07:31 +0100
committerXavier Noria <fxn@hashref.com>2010-12-11 00:07:31 +0100
commit1b8f9d3d7ebacbd16994da09803eefe2fbc1669e (patch)
tree092e798ff206115b7a2b1383c68ba0f02a344021 /railties/guides/source/testing.textile
parentb911d88390b252a2e14d4965b20fb3a7ac28c203 (diff)
parent61817d26301e7a89e3438042640213125c4d235a (diff)
downloadrails-1b8f9d3d7ebacbd16994da09803eefe2fbc1669e.tar.gz
rails-1b8f9d3d7ebacbd16994da09803eefe2fbc1669e.tar.bz2
rails-1b8f9d3d7ebacbd16994da09803eefe2fbc1669e.zip
Merge branch 'master' of https://github.com/vijaydev/docrails into vijaydev-master
Diffstat (limited to 'railties/guides/source/testing.textile')
-rw-r--r--railties/guides/source/testing.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile
index c292a5d83b..c9109a0ddf 100644
--- a/railties/guides/source/testing.textile
+++ b/railties/guides/source/testing.textile
@@ -183,7 +183,7 @@ 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.
<ruby>
-def test_truth
+def test_the_truth
</ruby>
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.
@@ -256,7 +256,7 @@ This will run all the test methods from the test case. Note that +test_helper.rb
You can also run a particular test method from the test case by using the +-n+ switch with the +test method name+.
<shell>
-$ ruby -Itest test/unit/post_test.rb -n test_truth
+$ ruby -Itest test/unit/post_test.rb -n test_the_truth
Loaded suite unit/post_test
Started