aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
Commit message (Collapse)AuthorAgeFilesLines
* Clarify fixtures examples [ci skip]Stefan Wrobel2016-04-081-1/+2
|
* Change 'a HTTP' to 'an HTTP' [ci skip]Santosh Wadghule2016-03-031-1/+1
|
* update assert_nothing_raised in testing.mdTara Scherner de la Fuente2016-02-221-1/+1
|
* reset `ActionMailer::Base.deliveries` in `ActionDispatch::IntegrationTest`.Yves Senn2016-02-161-3/+3
| | | | | | | | | Whenever you are sending emails in integration tests using the `:test` delivery method you need to make sure that `ActionMailer::Base.deliveries` is reset after every test. This piece of boilerplate code is present in all my applications that send emails. Let's have `ActionDispatch::IntegrationTest` reset the deliveries automatically.
* add missing name option to flash test example [ci skip]yuuji.yaginuma2016-02-131-2/+2
|
* Check off some todos for the Testing guide with @senny [ci skip]Zachary Scott2016-02-051-17/+26
|
* docs, remove trailing whitespace from testing guide. [ci skip]Yves Senn2016-02-051-9/+9
|
* docs, link Rails specific assertions to the API. [ci skip]Yves Senn2016-02-051-6/+6
|
* Small cleanup to Testing GuideJon Moss2016-01-301-1/+1
| | | | | | | - inbuilt --> built-in - Remove random spaces from code examples [ci skip]
* Pass 3 over testing guideVipul A M2016-01-311-19/+28
| | | | | | | | | - Various grammar fixes - Added assertions for update controller action tests - Added user helper tests - Fix typos [ci skip]
* Pass 2 over testing guideVipul A M2016-01-231-14/+14
| | | | | | | | | | | - Grammar fixes - Wordsmitting - Fixed wrong statement about association usage in fixtures - Changed association name from 'one' to 'first' instead - More consistent usage of we/our - Mentions assert_select is below, not already covered in Integration test. [ci skip]
* First pass over parts of Testing guideVipul A M2016-01-221-7/+7
| | | | | | | | | - Grammar improvements - Consistent usage of you or we in sentences - Tests can have zero or more assertions. Its not mandatory to have one. - Example for assert_send [ci skip]
* use bin/rails default instead of rake commands [ci skip]Gaurav Sharma2016-01-191-2/+2
| | | I go through the `http://edgeguides.rubyonrails.org/` and found `rake` commands in various files that are in RAILS 5.0 implement by `bin/rails` command. I try to change all that can be directly use `bin/rails …`
* Fix typo: test -> textSean Collins2015-12-301-1/+1
|
* ApplicationRecord documentation passGenadi Samokovarov2015-12-171-1/+1
| | | | | | | This is a pass over the documentation which fills the missing gaps of `ApplicationRecord`. [ci skip]
* [ci skip] Fix articles spelling.Kasper Timm Hansen2015-12-131-1/+1
| | | Tiny typo in the testing guide; articules should be articles.
* Remove ActionController::TestCase from documentationeileencodes2015-12-121-22/+22
| | | | | | | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going foward. Because this will be moved to a gem I used `# :stopdoc:` instead of deleting the documentation. This will remove it from the Rails documentation but still leave the method documented for when we move it to a gem. Guides have been updated to use the routing structure used in Integration and all test examples have been updated to inherit from `ActionDispatch::IntegrationTest` instead of `ActionController::TestCase. Fixes #22496
* guides, scaffold no longer used in getting started guide. Closes #22337.Yves Senn2015-11-191-6/+24
| | | | | | | | | | | [ci skip] Since the "Getting Started" guide no longer uses the scaffold generator we should rewrite references to that in the testing guide. The functional testing section was quite heavily based on such a scaffold test. I changed it to use `generate scaffold_controller` instead so that we can build up on the model foundation we already have.
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-11-151-2/+24
|\
| * copy edits [ci skip]Vijay Dev2015-11-151-12/+6
| |
| * Grammer & Style Tweaks as per feedbackGaurish Sharma2015-11-141-3/+3
| |
| * Document time testing helpersGaurish Sharma2015-11-091-0/+28
| |
| * :nailcare: Grammer fixesGaurish Sharma2015-11-091-2/+2
| |
* | Update docs/comments to use setup/teardown blocks vs. methods.Ken Collins2015-11-031-2/+2
|/ | | | As discussed in the minitest-spec-rails issue (http://git.io/vlHxx) Rails uses setup/teardown callbacks. Defining `setup` or `teardown` methods vs. blocks will yield inconsistent behavior in the callback chain.
* Fixed wording in Assertion docs, changed ‘Assert’ -> ‘Asserts’Ronak Jangir2015-10-071-1/+1
|
* Add missing and remove unnecessary periods in testing.md [ci skip]Juanito Fatas2015-09-051-5/+5
|
* fix reference to undefined variable in email testing guide [ci skip]Konstantinos Rousis2015-08-281-2/+5
|
* A quick pass over the testing guideRobin Dupret2015-08-251-6/+11
| | | | | | | | | * Fixtures are loaded for all the tests by default (not only model and controller tests). * Fix a few typos and improve the markup at some levels. * Wrap changes to 80 chars [ci skip]
* reorganize testing guide. [Zachary Scott & Yves Senn]Zachary Scott2015-08-171-329/+305
| | | | | | | | | | | | [ci skip] Better reading flow for the information presented in this guide. The first part is written in a similar fashion as the "Getting Started Guide" and can be read from start to finish. The second section introduces the different testing components that Rails provides and explains how and when to use them. The guide is still work in progress.
* Tiny documentation fixes [ci skip]Robin Dupret2015-08-161-2/+2
| | | | | | * Add missing `def` and remove useless `do` keywords. * Move `:nodoc:` in front of the methods' definition so that methods under these ones are correctly visible on the API.
* Small fixes [ci skip]Alexey Markov2015-08-151-10/+10
|
* Fix minor typo in testing guideDave Powers2015-07-201-1/+1
| | | [ci skip]
* [ci skip] add note for individual stub creationAditya Kapoor2015-07-151-0/+16
|
* Add fixture use case to testing.md.Staphany Park2015-06-131-0/+7
| | | | | I think people would find it useful to know that you can pass in multiple fixture names to get an array of all the fixtures. I've found this useful in my own app. It looks like there already a test case that supports this feature (https://github.com/rails/rails/blob/master/activerecord/test/cases/fixtures_test.rb#L398), but it's just not documented here. I look forward to your feedback!
* Remove `assigns` and `assert_template`.Guo Xiang Tan2015-05-301-58/+12
|
* [ci skip] Fix block parameter of assert_no_differenceHiromichi Yamada2015-05-281-1/+1
|
* Make link to configuring guide relative [ci skip]Eliot Sykes2015-05-221-1/+1
|
* Fix broken link for minitest. [ci skip]Arun Agrawal2015-05-201-1/+1
| | | For more details see #20222
* [ci skip] update ruby doc links; for rails next version ruby 2.2+ will be ↵Gaurav Sharma2015-05-201-1/+1
| | | | supported only
* Clarify view tests [ci skip]Benjamin Klotz2015-05-141-1/+1
| | | | Mention that view tests are made in controller tests.
* [ci skip] Fix purpose of `assert_kind_of`yui-knk2015-05-101-1/+1
|
* guides, bring back minitest assertion table. [ci skip]Yves Senn2015-04-281-3/+43
| | | | | | | | | Rails has different naming conventions for the inverse assertion methods. While minitest uses `refute` we use `_not`. We should have a table listing the common assertions that you want to use in the Rails context. Refs #18305.
* No need to mention unit tests in testing guide anymoreKir Shatrov2015-03-311-2/+0
|
* New test runner syntax in testing guideKir Shatrov2015-03-311-4/+4
|
* Suggest new hash syntax in testing guideKir Shatrov2015-03-311-2/+2
|
* Don't suggest `bin/rails test controllers`Kir Shatrov2015-03-311-1/+0
|
* Add missing "of" to testing guide.Hendy Tanata2015-03-301-1/+1
|
* Merge branch 'kirs'Matthew Draper2015-03-301-30/+23
|\
| * Switch to `bin/rails test` in testing guideKir Shatrov2015-03-301-30/+23
| | | | | | rails/rails#18305
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-03-261-2/+2
|\ \ | | | | | | | | | | | | Conflicts: guides/source/4_0_release_notes.md