| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \
| | | | |
| | | | | |
Fx system test example [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since test suffix is automatically granted, it is not necessary to
specify it in generator.
Also, updated the generated file to contents actually generated.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
passing unique parameter to belongs_to wrongly
|
| | | | |
| | | | |
| | | | | |
passing `unique` parameter to belongs_to not right,
|
|/ / / /
| | | |
| | | | |
[ci skip]
|
| |_|/
|/| | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The current Basic Test Case example has the following assertion
```
assert_equal read_fixture('invite').join, email.body.to_s
```
email.body.to_s returns an empty string if both HTML and text templates
exist for a given mailer. This commit adds a note to section 11.2.2
explaining this and also suggests using email.text_part.body.to_s
and email.html_part.body.to_s as alternatives.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since using a `ActiveSupport::Deprecation::DeprecatedConstantProxy`
would prevent people from inheriting this class and extending it
from the `ActiveSupport::HashWithIndifferentAccess` one would break
the ancestors chain, that's the best option we have here.
|
| | | |
|
| | |
| | |
| | |
| | | |
As the specified command is `rails g system_test articles`, the generated class name
is `ArticlesTest`, not `UsersTest`
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
There were some grammar issues and incorrect information in the system
tests documentation.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This renames the system test helper file to be application system test
case to match what the rest of Rails does. In the future we should
consider changing the test_helper to match.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Move system tests back into Action Pack
* Rename `ActionSystemTest` to `ActionDispatch::SystemTestCase`
* Remove private base module and only make file for public
`SystemTestCase` class, name private module `SystemTesting`
* Rename `ActionSystemTestCase` to `ApplicationSystemTestCase`
* Update corresponding documentation and guides
* Delete old `ActionSystemTest` files
|
| | |
| | |
| | |
| | |
| | | |
Update the documentation after rewriting a majority of the functionality
for system testing.
|
| | |
| | |
| | |
| | |
| | | |
This adds the required guides for how to write and use system tests in
your application.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove deprecate passing string to `:if` and `:unless` conditional options [ci skip]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[ci skip]
Follow up to #27608
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Change Rails engine guide to references a maintained project
Thredded instead of the abandoned project Forem. I chose
Thredded as Forem's closing note (below) suggests the choice.
https://github.com/rubysherpas/forem/blob/rails4/README.md
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit is not precisely atomic, but the changes have evolved, summary:
* The ENV-based interface has been moved upwards, the generator has now a conventional
initializer.
* RAILS_VERSION is now assumed to be a Git tag. A blank RAILS_VERSION means edge guides.
* In consequence, the EDGE env variable is gone.
* The "local" version is also gone, the current SHA1 is computed for edge guides.
* Assumes guides are generated from a repo checkout (time ago users could
generate them from gems.)
* The WARNINGS flag is gone in consequence, you cannot disable warnings.
* The `api_link` Markdown helper is fixed.
* Docs about usage have one single place: rake guides:help.
* Links in guides have been revised.
|
| | |
| | |
| | |
| | | |
Switch extension 👉 format as it's more apt here.
|
|\ \ \
| | | |
| | | | |
Get TODO done in `render_test`
|
| |/ / |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add note about breakage in file uploads in controller tests to upgrading guide
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
guide
ref #26404
[ci skip]
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Improve linking inside guides
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
To make sure that the user won't look at a feature that doesn't
already exist if they are looking at a previous version of the guides,
let's automatically inject the Rails version the guides have been
generated against.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The guide contains a typo in the "local_assigns" section, where
rendering a model named 'Article' via `render @articles` is shown to
render a partial called `_articles.html.erb`, when in fact the necessary
partial name is `_article.html.erb`
|
|/ /
| |
| |
| |
| |
| | |
Update i18n.md
Addressed Feedback
|
| |
| |
| |
| |
| | |
`judgment` is the preferred form as Rails usually follows en-us spelling
not en-gb.
|
| | |
|
| | |
|
| |
| |
| |
| | |
This will help people figure out what credentials and tables are required to
run ActiveRecord specs.
|
| |
| |
| |
| | |
[ci skip]
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Since `Thor::HELP_MAPPINGS` contains `-D`, so `bin/rails -D` show
rails's help. But, in Rails 5.0.1, `bin/rails -D` show the description
of rake task. I think that it is better to have the same behavior.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The exact inspect output of a BigDecimal is out of scope for what we're trying
to communicate about `dup` and `duplicable?` here.
Adding two examples distracts is disctracting, so keep the docs from before
since our minimal version is Ruby 2.2.2.
[ Koichi ITO, Jon Moss, Kasper Timm Hansen ]
This reverts commit 2163874dedaf83e67599c2930c2686caa165fbad, reversing
changes made to 46fdbc5290335ed38fa9fe2b6b0ef8abe4eccb1b.
|
| |
| |
| |
| | |
cf. https://github.com/ruby/bigdecimal/pull/42
|