aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAmerico Savinon <americos@gmail.com>2013-02-12 14:56:19 -0500
committerAmerico Savinon <americos@gmail.com>2013-02-12 14:56:19 -0500
commit6530d42dbb42e87f8c8467169f143b882b2cf7f4 (patch)
tree2ad79e621d42ee2be0a530b28def313f05b65c79 /guides
parent4e02a690d28486bff79ee2d7002ef18cc78ea989 (diff)
downloadrails-6530d42dbb42e87f8c8467169f143b882b2cf7f4.tar.gz
rails-6530d42dbb42e87f8c8467169f143b882b2cf7f4.tar.bz2
rails-6530d42dbb42e87f8c8467169f143b882b2cf7f4.zip
Detail Ruby 1.8 ships with TestUnit and Ruby 1.9 with MiniTest
Diffstat (limited to 'guides')
-rw-r--r--guides/source/testing.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 39a44794a7..d660d8932f 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -774,10 +774,13 @@ You don't need to set up and run your tests by hand on a test-by-test basis. Rai
Brief Note About `Test::Unit`
-----------------------------
-Ruby ships with a boat load of libraries. One little gem of a library is `Test::Unit`, a framework for unit testing in Ruby. All the basic assertions discussed above are actually defined in `Test::Unit::Assertions`. The class `ActiveSupport::TestCase` which we have been using in our unit and functional tests extends `Test::Unit::TestCase`, allowing
+Ruby ships with a boat load of libraries. In Ruby 1.8 one little gem of a library is `Test::Unit`, a framework for unit testing in Ruby. All the basic assertions discussed above are actually defined in `Test::Unit::Assertions`. The class `ActiveSupport::TestCase` which we have been using in our unit and functional tests extends `Test::Unit::TestCase`, allowing
us to use all of the basic assertions in our tests.
+Ruby 1.9 introduced MiniTest, an updated version of Test::Unit which provides a backwards compatible API for Test::Unit. You could also used MiniTest in Ruby 1.8 by installing the `minitest` gem.
+
NOTE: For more information on `Test::Unit`, refer to [test/unit Documentation](http://ruby-doc.org/stdlib/libdoc/test/unit/rdoc/)
+For more information on `MiniTest`, refer to [Minitest](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/minitest/unit/rdoc/)
Setup and Teardown
------------------