diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-14 18:23:38 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-14 18:23:38 -0200 |
commit | 114e9f2bdf9327ebadb1fc72400c1ef80c3f6c3b (patch) | |
tree | f8d73f0c2fdc84826f12a578511858c58d97349a | |
parent | 1c610eed9485529376baf85659d91ac29655014d (diff) | |
parent | d987bdd7fa0958b5b765c22d5ac62e3e70c12cad (diff) | |
download | rails-114e9f2bdf9327ebadb1fc72400c1ef80c3f6c3b.tar.gz rails-114e9f2bdf9327ebadb1fc72400c1ef80c3f6c3b.tar.bz2 rails-114e9f2bdf9327ebadb1fc72400c1ef80c3f6c3b.zip |
Merge pull request #17623 from jonatack/patch-8
Simplify and fix grammar [ci skip]
-rw-r--r-- | guides/source/testing.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index d2b8ce8ed2..b4c70dfa1d 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -785,10 +785,9 @@ end Rake Tasks for Running 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 built-in rake tasks to help in testing. -Below table lists available commands which come along in the default `Rakefile` -when you initiate a Rails project. +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 | | ----------------------- | ----------- | @@ -804,7 +803,7 @@ when you initiate a Rails project. | `rake test:db` | Runs all tests in the `test` folder and resets the db | -Brief Note About `Minitest` +A Brief Note About Minitest ----------------------------- Ruby ships with a vast Standard Library for all common use-cases including testing. Since version 1.9, Ruby provides `Minitest`, a framework for testing. All the basic assertions such as `assert_equal` discussed above are actually defined in `Minitest::Assertions`. The classes `ActiveSupport::TestCase`, `ActionController::TestCase`, `ActionMailer::TestCase`, `ActionView::TestCase` and `ActionDispatch::IntegrationTest` - which we have been inheriting in our test classes - include `Minitest::Assertions`, allowing us to use all of the basic assertions in our tests. |