aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-12-29 14:25:55 -0800
committerZachary Scott <e@zzak.io>2014-12-29 14:25:55 -0800
commit8beb781d0e959bde3a37abe6473b718f7bc2350b (patch)
tree5bceec5a8a6539ab84534c155f7ed2320e153da9 /guides/source/testing.md
parent8cde29211d4ceef8cb745e84b6e637a6fc69549d (diff)
downloadrails-8beb781d0e959bde3a37abe6473b718f7bc2350b.tar.gz
rails-8beb781d0e959bde3a37abe6473b718f7bc2350b.tar.bz2
rails-8beb781d0e959bde3a37abe6473b718f7bc2350b.zip
Compare http request type with test equivalent methods, and application use-cases.
Briefly explain difference between Functional and Request type tests. [ci skip]
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 0d6121d307..89add0d10f 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -524,9 +524,9 @@ If you're familiar with the HTTP protocol, you'll know that `get` is a type of r
* `head`
* `delete`
-All of request types are methods that you can use, however, you'll probably end up using the first two more often than the others.
+All of request types have equivalent methods that you can use. In a typical C.R.U.D. application you'll be using `get`, `post`, `put` and `delete` more often.
-NOTE: Functional tests do not verify whether the specified request type should be accepted by the action. Request types in this context exist to make your tests more descriptive.
+NOTE: Functional tests do not verify whether the specified request type is accepted by the action, we're more concerned with the result. Request tests exist for this use case to make your tests more purposeful.
### The Four Hashes of the Apocalypse