aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* add `ActiveJob::TestCase` to list of classes providing for test [ci skip]yuuji.yaginuma2015-02-281-0/+1
|
* Tiny documentation edits [ci skip]Robin Dupret2015-02-151-1/+2
|
* guides, various testing guide changes. [ci skip]Yves Senn2015-02-111-7/+15
| | | | /cc @zzak
* Migrating xhr methods to keyword arguments syntaxKir Shatrov2015-02-011-2/+2
| | | | | | | | | | | | in `ActionController::TestCase` and `ActionDispatch::Integration` Old syntax: `xhr :get, :create, params: { id: 1 }` New syntax example: `get :create, params: { id: 1 }, xhr: true`
* Consistent usage of spaces in hashes across our codebaseRafael Mendonça França2015-01-291-8/+8
|
* Use fixed fonts only in the name of the parameterRafael Mendonça França2015-01-291-3/+3
|
* Switch to kwargs in ActionController::TestCase and ActionDispatch::IntegrationKir Shatrov2015-01-291-18/+27
| | | | | | | | Non-kwargs requests are deprecated now. Guides are updated as well. `post url, nil, nil, { a: 'b' }` doesn't make sense. `post url, params: { y: x }, session: { a: 'b' }` would be an explicit way to do the same
* Fix test case class in the testing guide [ci skip]Rafael Mendonça França2015-01-211-1/+1
|
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-01-151-7/+54
|\
| * Better example of `teardown` method in test guideKir Shatrov2015-01-031-4/+2
| | | | | | rails/rails#18305, thanks for @dhh suggestion
| * Demonstrate example of `assert_emails` in testing guideKir Shatrov2015-01-031-3/+4
| | | | | | rails/rails#18305, thanks for @dhh suggestion
| * Docs for controller test helpersKir Shatrov2015-01-031-0/+35
| | | | | | | | rails/rails#18305
| * Avoid double negation in test guideKir Shatrov2015-01-031-1/+1
| | | | | | | | rails/rails#18305
| * Section about testing xhr requestsKir Shatrov2015-01-031-0/+13
| | | | | | | | rails/rails#18305
* | - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
|/ | | | - Changed `IN` to `ON` in all note sentences in guides.
* fix rake command typo in Testing guide [ci skip]yuuji.yaginuma2014-12-311-1/+1
|
* Replace exhaustive list of methods with pointer to API docs. [ci skip]Zachary Scott2014-12-301-11/+1
|
* Add result of running articles_routes_test and point to more information forZachary Scott2014-12-301-0/+16
| | | | RoutingAssertions. [ci skip]
* Move request tests after functional and before views, and move helper testsZachary Scott2014-12-301-50/+50
| | | | after views. [ci skip]
* Make "Testing Views" separate section, move "Setup and Teardown" intoZachary Scott2014-12-301-88/+85
| | | | | | functional testing section and implement :show, :destroy, and :update tests. [ci skip]
* Add implement integration test to Testing Guide. [ci skip]Zachary Scott2014-12-301-0/+75
|
* Replace exhaustive list of helper methods with pointers to helper classes foundZachary Scott2014-12-301-16/+7
| | | | in the Action Dispatch Integration module. [ci skip]
* Remove this line which was added by accident [ci skip]Zachary Scott2014-12-301-2/+0
|
* Move Rake tasks list to a smaller heading section earlier in the guide.Zachary Scott2014-12-291-21/+21
| | | | | It makes more sense here, rather than after explaining all of the testing facilities of Rails. [ci skip]
* Condense notes regarding Minitest and its available assertions removed in:Zachary Scott2014-12-291-38/+19
| | | | | | | | 82b75eda70f8c30f7c418e7350532a3a0ed2a8c3 Also explain how Rails inherits capabilities from Minitest. Test classes should be roughly the same based on this information, we can address them at a high level when introducing the first test case. [ci skip]
* Remove redundant information about Minitest, which is already covered whenZachary Scott2014-12-291-8/+0
| | | | assertions are introduced. [ci skip]