diff options
author | Zachary Scott <e@zzak.io> | 2014-12-30 11:03:13 -0800 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-12-30 11:03:13 -0800 |
commit | eeccdacbba4d86fbd57dd688f56aced7cbcf564d (patch) | |
tree | b1acca4c5b053e7f6cae0ac68a859bf682839076 | |
parent | 12c6de9aaea7390f9434e45ec316108f0163a2ed (diff) | |
download | rails-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]
-rw-r--r-- | guides/source/testing.md | 16 |
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 ------------- |