aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGaurish Sharma <contact@gaurishsharma.com>2014-07-13 02:28:25 +0530
committerGaurish Sharma <contact@gaurishsharma.com>2014-07-13 02:28:25 +0530
commit04e1281990fd1d18d95c6b609690380711d0b48a (patch)
treebcfd6c6d18fb46ce780efe7435abb704b13f7243 /guides/source
parent46d2a517a43b6707927b6d712ae317e6960ece61 (diff)
downloadrails-04e1281990fd1d18d95c6b609690380711d0b48a.tar.gz
rails-04e1281990fd1d18d95c6b609690380711d0b48a.tar.bz2
rails-04e1281990fd1d18d95c6b609690380711d0b48a.zip
Add link to minitest rdoc & github
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/testing.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 561fe2cf70..a416cd36b5 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -365,7 +365,7 @@ Ideally, you would like to include a test for everything which could possibly br
By now you've caught a glimpse of some of the assertions that are available. Assertions are the worker bees of testing. They are the ones that actually perform the checks to ensure that things are going as planned.
There are a bunch of different types of assertions you can use.
-Here's an extract of the assertions you can use with `minitest`, the default testing library used by Rails. The `[msg]` parameter is an optional string message you can specify to make your test failure messages clearer. It's not required.
+Here's an extract of the assertions you can use with [`Minitest`](https://github.com/seattlerb/minitest), the default testing library used by Rails. The `[msg]` parameter is an optional string message you can specify to make your test failure messages clearer. It's not required.
| Assertion | Purpose |
| ---------------------------------------------------------------- | ------- |
@@ -395,6 +395,8 @@ Here's an extract of the assertions you can use with `minitest`, the default tes
| `assert_send( array, [msg] )` | Ensures that executing the method listed in `array[1]` on the object in `array[0]` with the parameters of `array[2 and up]` is true. This one is weird eh?|
| `flunk( [msg] )` | Ensures failure. This is useful to explicitly mark a test that isn't finished yet.|
+The above are subset of assertions that minitest supports. For an exhaustive & more up-to-date list, please check [Minitest API documentation](http://docs.seattlerb.org/minitest/), specifically [`Minitest::Assertions`](http://docs.seattlerb.org/minitest/Minitest/Assertions.html)
+
Because of the modular nature of the testing framework, it is possible to create your own assertions. In fact, that's exactly what Rails does. It includes some specialized assertions to make your life easier.
NOTE: Creating your own assertions is an advanced topic that we won't cover in this tutorial.