aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
Commit message (Collapse)AuthorAgeFilesLines
* Automatically maintain test database schemaJon Leighton2014-01-021-24/+2
| | | | | | | | | | | | | | * Move check from generated helper to test_help.rb, so that all applications can benefit * Rather than just raising when the test schema has pending migrations, try to load in the schema and only raise if there are pending migrations afterwards * Opt out of the check by setting config.active_record.maintain_test_schema = false * Deprecate db:test:* tasks. The test helper is now fully responsible for maintaining the test schema, so we don't need rake tasks for this. This is also a speed improvement since we're no longer reloading the test database on every call to "rake test".
* doc fix. Use `sess.path` within `open_session`. Closes #13490. [ci skip]Yves Senn2013-12-271-1/+1
|
* Add `rake test:all`, `rake test:all:db` to guidePaul Nikitochkin2013-11-301-9/+14
| | | | [ci skip]
* Fixed minor typoJens Dahl Møllerhøj2013-11-091-1/+1
| | | | | | instead of 'rake test' as shortcut, use 'rake'. Closes #12780 [ci skip]
* document `BACKTRACE` env var usage in testing guide. [ci skip]Yves Senn2013-11-041-0/+11
|
* Fix a typo in the code of Testing guide.Geoffrey Roguelon2013-10-031-1/+1
| | | | Replace the word «Accepts» by «Accept» in the example of custom request headers.
* mention controller test base class in testing guide. [ci skip]Yves Senn2013-09-201-4/+6
|
* Use Ruby on Rails Coding Conventions for code examples in the guidesPaul Nikitochkin2013-09-061-19/+18
| | | | | | | | * Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip]
* cleans the guides sources from fancy non-ASCII stuffXavier Noria2013-08-231-1/+1
|
* Merge pull request #11059 from robin850/improve-test-guideXavier Noria2013-08-161-6/+64
|\ | | | | Improve the testing guide [ci skip]
| * Improve the testing guide [ci skip]Robin Dupret2013-06-251-6/+64
| | | | | | | | | | | | | | | | | | Improve the "Testing Rails Applications" guide adding a section for testing helpers and a little note about associations with ActiveRecord and YAML fixtures. Also add a link to Fixture Builder ; yet another replacement for fixtures such as Machinist or FactoryGirl.
* | document `assert_not_XYZ` in place of `refute_XYZ`.Yves Senn2013-08-141-10/+10
| |
* | update test names in testing guide [ci-skip]Cesar Carruitero2013-07-021-2/+2
|/
* copy edits [ci skip]Vijay Dev2013-06-141-2/+2
|
* Remove references to deprecated test tasksSunny Ripert2013-05-281-7/+0
|
* Remove double spaces in guidesSunny Ripert2013-05-281-5/+5
|
* Consistent use of one space only after punctuationSunny Ripert2013-05-281-2/+2
|
* End-of-line whitespace huntSunny Ripert2013-05-281-1/+1
|
* copy edits [ci skip]Vijay Dev2013-05-011-1/+1
|
* fixes typo in testing guideFlorian Thomas2013-04-211-1/+1
|
* Updates list of assertions in testing guideFlorian Thomas2013-04-211-12/+19
|
* There are now 6 request methods including PATCHJonathan Roes2013-04-191-1/+1
|
* Simplify ERB example codeJonathan Roes2013-04-191-2/+2
|
* MiniTest::Unit is used instead of Test::UnitFlorian Thomas2013-04-191-2/+3
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-04-111-7/+7
|\ | | | | | | | | Conflicts: guides/source/action_mailer_basics.md
| * Improve some variable naming for the integration test in the testing guide. ↵Dan Erikson2013-04-061-5/+5
| | | | | | | | [ci skip]
| * Corrected model test directory to be test/models instead of test/unit.Dan Erikson2013-04-061-2/+2
| |
* | updating the guideAaron Patterson2013-04-051-5/+5
| |
* | just use ruby to run testsAaron Patterson2013-04-051-4/+4
| |
* | removing `rails test`, updating docs to show how to use `rake test`Aaron Patterson2013-04-051-14/+14
|/
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-03-301-6/+7
|\ | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/adapter_test.rb guides/source/testing.md [ci skip]
| * correct some typo in earlier commit.Deshi Xiao2013-03-241-1/+1
| |
| * correct test command's typoDeshi Xiao2013-03-241-13/+13
| |
| * Add minitest-spec-rails to guide's testing optionsKen Collins2013-03-221-0/+1
| |
* | move mailer testing examples into the testing guide.Yves Senn2013-03-251-11/+24
| | | | | | | | | | | | | | | | Closes #9325. I adjusted the example and the description in the testing guide and simply linked from the mailer to the testing guide. This way we don't have to maintain two separate places.
* | `Http::Headers` directly modifies the passed environment.Yves Senn2013-03-151-0/+15
| | | | | | | | | | | | | | | | | | The env hash passed to `Http::Headers#new` must be in env format. Also be aware that the passed hash is modified directly. docs and test-cases for setting headers/env in functional tests. Follow up to #9700.
* | Improve wording for rails test commandDalibor Nasevic2013-03-091-4/+3
| |
* | Add support for MiniTest flags in TestRunnerPrem Sichanugrist2013-03-091-20/+5
| | | | | | | | | | Any flags that got set will be passed through to MiniTest::Unit.runner, such as `-n`, `-s-, and `-v`.
* | Update testing documentationPrem Sichanugrist2013-03-091-63/+71
|/ | | | | | | * Update test invocation to use `rails test` instead. * Update all the test command previews (since we're now using MiniTest.) * Mentioning MiniTest instead of Test::Unit. * Update list of test suites.
* copy edits [ci skip]Vijay Dev2013-02-151-2/+2
|
* Detail Ruby 1.8 ships with TestUnit and Ruby 1.9 with MiniTestAmerico Savinon2013-02-121-1/+4
|
* Merge remote-tracking branch 'docrails/master'Xavier Noria2013-01-261-1/+1
|\ | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb guides/code/getting_started/app/controllers/comments_controller.rb
| * clarify awkward sentence re: email testingJonathan Garvin2013-01-161-1/+1
| |
* | remove performance tests from the default stackYves Senn2013-01-101-4/+2
|/
* fixed inconsistent `require 'test_helper'` in testing guideJoey Schoblaska2012-12-301-1/+1
|
* Update documentation for yml usageNishant Modak2012-12-301-1/+1
| | | Update documentation for yml usage against https://github.com/rails/rails/issues/8612
* Fixed grammar in a lot of guide prologues.Katie Oldaker2012-12-071-3/+3
|
* Normalize on 'After reading this guide, you will know:'Steve Klabnik2012-11-291-1/+3
| | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere.
* Add periods to the bullet points in guides.Steve Klabnik2012-11-291-3/+3
| | | | Talked with @fxn about this. Bullet points should have periods at the ends.
* ActiveRecord -> Active RecordSteve Klabnik2012-11-291-2/+2
| | | | | The proper name, as per the documentation guides, is 'Active Record.' I've updated several references to it as 'ActiveRecord'.