| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
| |
[skip ci]
|
|
|
|
| |
Partially revert https://github.com/rails/rails/commit/c31e638a37946a120f6dbf207127d36beea5ab85.
|
|
|
|
|
| |
This has changed recently and so rake test:all and rake
test:all:db are deprecated.
|
|
|
|
| |
Add missing testing tasks and also improve upon tasks descriptions
|
| |
|
|
|
|
| |
name keywords
|
|\
| |
| | |
simplify rake test vs rake test:all
|
| |
| |
| |
| | |
Renames `rake test:all` to `rake test` by changing old `rake test:run` to previous version of `rake test:all`. Removes old definition of `rake test`. Also renames `rake test:all:db` to `rake test:db` and deprecates `rake test:all` & `rake test:all:db`
|
|\ \
| | |
| | | |
Add a section about job testing [ci skip]
|
| |/
| |
| |
| |
| |
| |
| |
| | |
* Cover lower level job testing (assertions about the execution of the
job itself).
* Add a table with the custom assertions provided by Active Job's
`TestHelper` module.
* Add an example testing job queuing inside a model
|
| |
| |
| |
| |
| | |
- Integration test example is now using 'articles' name
for both path and assigns key.
|
|\ \
| |/
|/| |
Explicit route test class
|
| |
| |
| | |
shows the class that the test must extend in order to have the assert_routing method available
|
|/ |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
actionpack/CHANGELOG.md
actionpack/test/controller/integration_test.rb
actionview/CHANGELOG.md
|
| | |
|
| | |
|
| |\
| | |
| | |
| | |
| | | |
Conflicts:
guides/source/testing.md
|
| | | |
|
| | | |
|
| |/
| |
| |
| | |
in testing guide.
|
|\ \
| |/
|/|
| |
| |
| |
| |
| | |
Loofah-integration
Conflicts:
actionpack/CHANGELOG.md
actionview/CHANGELOG.md
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Currently there is no implicit conversion for Mail::Body to string
therefore .to_s must be applied. This is exampled in 10.2.2.
|
|/ |
|
|
|
|
|
| |
When you manually specify `id:` attribute in a fixture Rails' built in association assignment feature will no longer work. http://stackoverflow.com/questions/23985675/incorrect-association-in-fixtures
This commit raises awareness of this behavior and encourages developers to look directly at the fixture documentation.
|
|
|
| |
The fixtures API docs are really comprehensive. We should either be driving people there, or perhaps making fixtures its own guide.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
I don't know when this changed, checked back up to 3.2 and integration
tests instantiate fixtures just fine.
|
| |
|
|
|
|
| |
[ci skip]
|
|
|
|
| |
[skip ci]
|
| |
|
| |
|
|
|
|
| |
Active Record objects [ci skip]
|
|
|
|
| |
This was a reaction to: https://github.com/rails/rails/pull/9700#issuecomment-34550210
|
| |
|
|
|
|
|
| |
As discussed in #13940 this can be removed
We can document this somewhere else in testing guides.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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".
|
| |
|
|
|
|
| |
[ci skip]
|
|
|
|
|
|
| |
instead of 'rake test' as shortcut, use 'rake'.
Closes #12780 [ci skip]
|
| |
|
|
|
|
| |
Replace the word «Accepts» by «Accept» in the example of custom request headers.
|