aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| * | [ci skip] Capitalize titleyui-knk2015-03-221-1/+1
| |/
| * Better title in Testing GuideKir Shatrov2015-03-221-1/+1
| | | | | | | | suggested by @senny https://github.com/rails/rails/pull/18305#issuecomment-73847595
* | [skip ci] Minor edits for clarity, to make smooth, & separate clauses.Kyle Oba2015-03-251-2/+2
| | | | | | | | | | | | * Add conjunction for clarity. * Add comma between independent clauses: create command, and generation of fixtures.
* | Change 'girlfriend' to 'partner'Sean Collins2015-03-201-1/+1
| |
* | Merge pull request #19322 from ↵Rafael Mendonça França2015-03-131-1/+1
|\ \ | | | | | | | | | | | | AndrewHendrie/AndrewHendrie-guides-testing-partials-patch Asserting partials modification
| * | Asserting partials modificationAndrew Hendrie2015-03-131-1/+1
| | | | | | | | | Changed "create Articles view" to "new article view". The create action doesn't typically have a view assigned to it. The view that's being referred to is the 'new' Article view.
* | | Fix typo in the “Testing Your Mailers” docsMarius Butuc2015-03-121-1/+1
|/ / | | | | * [ci skip]
* / Changed 'blank space' to 'blank line'Andrew Hendrie2015-03-091-1/+1
|/ | | Line 85 stated that fixtures are typically separated by a blank space. I changed the wording to blank line because blank space could be misinterpreted as a non-breaking space character when in reality, each fixture record (in YAML) is separated by a blank line.