Skip to content

Commit

Permalink
update the guides to reflect the new rails test command.
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Apr 3, 2013
1 parent 3768326 commit 8350b67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions guides/source/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,17 @@ irb(main):001:0>
INFO: You can also use the alias "db" to invoke the dbconsole: `rails db`.
### `rails test`
INFO: A good description of unit testing in Rails is given in
[A Guide to Testing Rails Applications](testing.html)
Rails comes with a test suite called `Test::Unit`. Rails owes its stability to
the use of tests. The `rails test` command helps in running the different tests
you will hopefully write. The
[commands section in the testing guide](testing.html#commands-to-run-your-tests)
describes `rails test` in depth.
### `rails runner`
`runner` runs Ruby code in the context of Rails non-interactively. For instance:
Expand Down Expand Up @@ -460,9 +471,9 @@ rspec/model/user_spec.rb:
### `test`
INFO: A good description of unit testing in Rails is given in [A Guide to Testing Rails Applications](testing.html)
Rails comes with a test suite called `Test::Unit`. Rails owes its stability to the use of tests. The tasks available in the `test:` namespace helps in running the different tests you will hopefully write.
See the
[commands section in the testing guide](testing.html#commands-to-run-your-tests)
for a summary of available tasks.
### `tmp`
Expand Down
2 changes: 1 addition & 1 deletion guides/source/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ class UserFlowsTest < ActionDispatch::IntegrationTest
end
```
Rake Tasks for Running your Tests
Commands to Run your Tests
---------------------------------
You don't need to set up and run your tests by hand on a test-by-test basis. Rails comes with a number of commands to help in testing. The table below lists all commands that come along in the default Rakefile when you initiate a Rails project.
Expand Down

0 comments on commit 8350b67

Please sign in to comment.