diff options
author | Kir Shatrov <shatrov@me.com> | 2015-03-31 14:37:46 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2015-03-31 14:38:28 +0300 |
commit | 851621bf19f21eaab4a3a8476cd19b5fb1fd7d93 (patch) | |
tree | 1bc98c9a1dcda61dd52eceeecdb2b7d50d051d64 /guides | |
parent | 487aa51b1414d3f316c7ccdc92af2f212961e0bb (diff) | |
download | rails-851621bf19f21eaab4a3a8476cd19b5fb1fd7d93.tar.gz rails-851621bf19f21eaab4a3a8476cd19b5fb1fd7d93.tar.bz2 rails-851621bf19f21eaab4a3a8476cd19b5fb1fd7d93.zip |
New test runner syntax in testing guide
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/testing.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index a67f2edbaa..220e61e088 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -289,10 +289,10 @@ test "should not save article without title" do end ``` -Let us run this newly added test. +Let us run this newly added test (where `6` is the number of line where the test is defined). ```bash -$ bin/rails test test/models/article_test.rb test_should_not_save_article_without_title +$ bin/rails test test/models/article_test.rb:6 F Finished tests in 0.044632s, 22.4054 tests/s, 22.4054 assertions/s. @@ -332,7 +332,7 @@ end Now the test should pass. Let us verify by running the test again: ```bash -$ bin/rails test test/models/article_test.rb test_should_not_save_article_without_title +$ bin/rails test test/models/article_test.rb:6 . Finished tests in 0.047721s, 20.9551 tests/s, 20.9551 assertions/s. @@ -361,7 +361,7 @@ end Now you can see even more output in the console from running the tests: ```bash -$ bin/rails test test/models/article_test.rb test_should_report_error +$ bin/rails test test/models/article_test.rb E Finished tests in 0.030974s, 32.2851 tests/s, 0.0000 assertions/s. |