aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-12-30 11:03:13 -0800
committerZachary Scott <e@zzak.io>2014-12-30 11:03:13 -0800
commiteeccdacbba4d86fbd57dd688f56aced7cbcf564d (patch)
treeb1acca4c5b053e7f6cae0ac68a859bf682839076 /guides/source/testing.md
parent12c6de9aaea7390f9434e45ec316108f0163a2ed (diff)
downloadrails-eeccdacbba4d86fbd57dd688f56aced7cbcf564d.tar.gz
rails-eeccdacbba4d86fbd57dd688f56aced7cbcf564d.tar.bz2
rails-eeccdacbba4d86fbd57dd688f56aced7cbcf564d.zip
Add result of running articles_routes_test and point to more information for
RoutingAssertions. [ci skip]
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index c4c9214d41..62fc8cb8ae 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -786,6 +786,22 @@ class ArticleRoutesTest < ActionController::TestCase
end
```
+I've added this file here `test/controllers/articles_routes_test.rb` and if we run the test we should see:
+
+```bash
+$ be rake test test/controllers/articles_routes_test.rb
+
+# Running:
+
+..
+
+Finished in 0.069381s, 28.8263 runs/s, 86.4790 assertions/s.
+
+2 runs, 6 assertions, 0 failures, 0 errors, 0 skips
+```
+
+For more information on routing assertions available in Rails, see the API documentation for [`ActionDispatch::Assertions::RoutingAssertions`](http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html).
+
Testing Views
-------------