aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-12-29 18:13:47 -0800
committerZachary Scott <e@zzak.io>2014-12-29 18:13:47 -0800
commitd9b080bf3b1f28a52a2020c5c4b106cddf0303e0 (patch)
tree0d03645807c2dc54ace9beefb76bed8f3a51ab53 /guides
parent7e00ca987c0e047a2735048e543b3d097070637c (diff)
downloadrails-d9b080bf3b1f28a52a2020c5c4b106cddf0303e0.tar.gz
rails-d9b080bf3b1f28a52a2020c5c4b106cddf0303e0.tar.bz2
rails-d9b080bf3b1f28a52a2020c5c4b106cddf0303e0.zip
Move Rake tasks list to a smaller heading section earlier in the guide.
It makes more sense here, rather than after explaining all of the testing facilities of Rails. [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/testing.md42
1 files changed, 21 insertions, 21 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index f5f2dd29a2..829686b82e 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -141,6 +141,27 @@ users(:david).id
email(david.girlfriend.email, david.location_tonight)
```
+### Rake Tasks for Running your Tests
+
+Rails comes with a number of built-in rake tasks to help with testing. The
+table below lists the commands included in the default Rakefile when a Rails
+project is created.
+
+| Tasks | Description |
+| ----------------------- | ----------- |
+| `rake test` | Runs all tests in the `test` directory. You can also run `rake` and Rails will run all tests by default |
+| `rake test:controllers` | Runs all the controller tests from `test/controllers` |
+| `rake test:functionals` | Runs all the functional tests from `test/controllers`, `test/mailers`, and `test/functional` |
+| `rake test:helpers` | Runs all the helper tests from `test/helpers` |
+| `rake test:integration` | Runs all the integration tests from `test/integration` |
+| `rake test:jobs` | Runs all the job tests from `test/jobs` |
+| `rake test:mailers` | Runs all the mailer tests from `test/mailers` |
+| `rake test:models` | Runs all the model tests from `test/models` |
+| `rake test:units` | Runs all the unit tests from `test/models`, `test/helpers`, and `test/unit` |
+| `rake test:db` | Runs all tests in the `test` directory and resets the db |
+
+We will cover each of types Rails tests listed above in this guide.
+
Unit Testing your Models
------------------------
@@ -776,27 +797,6 @@ In addition to the standard testing helpers, there are some additional helpers a
| `delete_via_redirect(path, [parameters], [headers])` | Allows you to make an HTTP DELETE request and follow any subsequent redirects.|
| `open_session` | Opens a new session instance.|
-
-Rake Tasks for Running your Tests
----------------------------------
-
-Rails comes with a number of built-in rake tasks to help with testing. The
-table below lists the commands included in the default Rakefile when a Rails
-project is created.
-
-| Tasks | Description |
-| ----------------------- | ----------- |
-| `rake test` | Runs all tests in the `test` directory. You can also run `rake` and Rails will run all tests by default |
-| `rake test:controllers` | Runs all the controller tests from `test/controllers` |
-| `rake test:functionals` | Runs all the functional tests from `test/controllers`, `test/mailers`, and `test/functional` |
-| `rake test:helpers` | Runs all the helper tests from `test/helpers` |
-| `rake test:integration` | Runs all the integration tests from `test/integration` |
-| `rake test:jobs` | Runs all the job tests from `test/jobs` |
-| `rake test:mailers` | Runs all the mailer tests from `test/mailers` |
-| `rake test:models` | Runs all the model tests from `test/models` |
-| `rake test:units` | Runs all the unit tests from `test/models`, `test/helpers`, and `test/unit` |
-| `rake test:db` | Runs all tests in the `test` directory and resets the db |
-
Setup and Teardown
------------------