Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update Minitest references in Testing Guide | Leandro Facchinetti | 2014-05-30 | 1 | -12/+8 |
| | | | | | | | | | | | | | | | | | | | | | The Guide references `test/unit`, which has been replaced by `Minitest` in all versions of Ruby supported by Rails. The following updates were performed: * The superclass of `ActiveSupport::TestCase` is no longer `MiniTest::Unit::TestCase`, but `Minitest::Test` [1]. * The preferred spelling is `Minitest`, not `MiniTest` [2]. * For a method to be a test in Minitest, its name must start with `test_`, not only `test` [3]. * Explanations about `test/unit` in Ruby 1.8 were removed in favor of more up-to-date information on `Minitest`. [1]: https://github.com/rails/rails/blob/6c2b569660c9216595d02ce6412e3bdcc7293317/activesupport/lib/active_support/test_case.rb#L18 [2]: https://github.com/seattlerb/minitest/blob/d5d43cef9a3fd4a0eea972dde125ed5ba1ddb821/lib/minitest.rb#L9 [3]: https://github.com/seattlerb/minitest/blob/d5d43cef9a3fd4a0eea972dde125ed5ba1ddb821/lib/minitest/test.rb#L62 | ||||
* | integration tests do not need to load fixtures by hand | Xavier Noria | 2014-05-25 | 1 | -5/+0 |
| | | | | | I don't know when this changed, checked back up to 3.2 and integration tests instantiate fixtures just fine. | ||||
* | Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip] | John Kelly Ferguson | 2014-05-21 | 1 | -75/+75 |
| | |||||
* | Use generated binstubs in guides examples. | Josef Šimánek | 2014-05-20 | 1 | -9/+9 |
| | | | | [ci skip] | ||||
* | Replace first person point of view on guides. | Hendy Tanata | 2014-05-16 | 1 | -1/+1 |
| | | | | [skip ci] | ||||
* | Instead boat load of libraries, simply say StdLib | Gaurish Sharma | 2014-04-09 | 1 | -1/+1 |
| | |||||
* | change 'assert !' to 'assert_not' in guides [ci skip] | Greg Molnar | 2014-02-20 | 1 | -3/+3 |
| | |||||
* | [Testing Guide] Explain usage of assert_redirected_to with named routes and ↵ | Prathamesh Sonpatki | 2014-02-12 | 1 | -1/+1 |
| | | | | Active Record objects [ci skip] | ||||
* | docs, link to HTTP and CGI header definitions. [ci skip] | Yves Senn | 2014-02-10 | 1 | -2/+4 |
| | | | | This was a reaction to: https://github.com/rails/rails/pull/9700#issuecomment-34550210 | ||||
* | [Testing Guide] Mention :unauthorized in assert_response explanation [ci skip] | Prathamesh Sonpatki | 2014-02-07 | 1 | -1/+1 |
| | |||||
* | Removed unused commented code [ci skip] | Arun Agrawal | 2014-02-05 | 1 | -1/+0 |
| | | | | | As discussed in #13940 this can be removed We can document this somewhere else in testing guides. | ||||
* | add missing sharp [ci skip] | Greg Molnar | 2014-02-04 | 1 | -1/+1 |
| | |||||
* | Fixed minor typo [ci skip] | Calvin Tam | 2014-02-03 | 1 | -1/+1 |
| | |||||
* | Automatically maintain test database schema | Jon Leighton | 2014-01-02 | 1 | -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 Senn | 2013-12-27 | 1 | -1/+1 |
| | |||||
* | Add `rake test:all`, `rake test:all:db` to guide | Paul Nikitochkin | 2013-11-30 | 1 | -9/+14 |
| | | | | [ci skip] | ||||
* | Fixed minor typo | Jens Dahl Møllerhøj | 2013-11-09 | 1 | -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 Senn | 2013-11-04 | 1 | -0/+11 |
| | |||||
* | Fix a typo in the code of Testing guide. | Geoffrey Roguelon | 2013-10-03 | 1 | -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 Senn | 2013-09-20 | 1 | -4/+6 |
| | |||||
* | Use Ruby on Rails Coding Conventions for code examples in the guides | Paul Nikitochkin | 2013-09-06 | 1 | -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 stuff | Xavier Noria | 2013-08-23 | 1 | -1/+1 |
| | |||||
* | Merge pull request #11059 from robin850/improve-test-guide | Xavier Noria | 2013-08-16 | 1 | -6/+64 |
|\ | | | | | Improve the testing guide [ci skip] | ||||
| * | Improve the testing guide [ci skip] | Robin Dupret | 2013-06-25 | 1 | -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 Senn | 2013-08-14 | 1 | -10/+10 |
| | | |||||
* | | update test names in testing guide [ci-skip] | Cesar Carruitero | 2013-07-02 | 1 | -2/+2 |
|/ | |||||
* | copy edits [ci skip] | Vijay Dev | 2013-06-14 | 1 | -2/+2 |
| | |||||
* | Remove references to deprecated test tasks | Sunny Ripert | 2013-05-28 | 1 | -7/+0 |
| | |||||
* | Remove double spaces in guides | Sunny Ripert | 2013-05-28 | 1 | -5/+5 |
| | |||||
* | Consistent use of one space only after punctuation | Sunny Ripert | 2013-05-28 | 1 | -2/+2 |
| | |||||
* | End-of-line whitespace hunt | Sunny Ripert | 2013-05-28 | 1 | -1/+1 |
| | |||||
* | copy edits [ci skip] | Vijay Dev | 2013-05-01 | 1 | -1/+1 |
| | |||||
* | fixes typo in testing guide | Florian Thomas | 2013-04-21 | 1 | -1/+1 |
| | |||||
* | Updates list of assertions in testing guide | Florian Thomas | 2013-04-21 | 1 | -12/+19 |
| | |||||
* | There are now 6 request methods including PATCH | Jonathan Roes | 2013-04-19 | 1 | -1/+1 |
| | |||||
* | Simplify ERB example code | Jonathan Roes | 2013-04-19 | 1 | -2/+2 |
| | |||||
* | MiniTest::Unit is used instead of Test::Unit | Florian Thomas | 2013-04-19 | 1 | -2/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-04-11 | 1 | -7/+7 |
|\ | | | | | | | | | Conflicts: guides/source/action_mailer_basics.md | ||||
| * | Improve some variable naming for the integration test in the testing guide. ↵ | Dan Erikson | 2013-04-06 | 1 | -5/+5 |
| | | | | | | | | [ci skip] | ||||
| * | Corrected model test directory to be test/models instead of test/unit. | Dan Erikson | 2013-04-06 | 1 | -2/+2 |
| | | |||||
* | | updating the guide | Aaron Patterson | 2013-04-05 | 1 | -5/+5 |
| | | |||||
* | | just use ruby to run tests | Aaron Patterson | 2013-04-05 | 1 | -4/+4 |
| | | |||||
* | | removing `rails test`, updating docs to show how to use `rake test` | Aaron Patterson | 2013-04-05 | 1 | -14/+14 |
|/ | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-03-30 | 1 | -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 Xiao | 2013-03-24 | 1 | -1/+1 |
| | | |||||
| * | correct test command's typo | Deshi Xiao | 2013-03-24 | 1 | -13/+13 |
| | | |||||
| * | Add minitest-spec-rails to guide's testing options | Ken Collins | 2013-03-22 | 1 | -0/+1 |
| | | |||||
* | | move mailer testing examples into the testing guide. | Yves Senn | 2013-03-25 | 1 | -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 Senn | 2013-03-15 | 1 | -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 command | Dalibor Nasevic | 2013-03-09 | 1 | -4/+3 |
| | |