| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* `rails test -f` will run the test suites with all fixtures loaded
* New application will now generated without `fixtures :all` line
enabled by default.
|
|
|
|
|
| |
Any flags that got set will be passed through to MiniTest::Unit.runner,
such as `-n`, `-s-, and `-v`.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To run the whole test suite:
$ rails test
To run the test file(s):
$ rails test test/unit/foo_test.rb [test/unit/bar_test.rb ...]
To run the test suite
$ rails test [models,helpers,units,controllers,mailers,...]
For more information, see `rails test --help`.
This command will eventually replacing `rake test:*`, and `rake test`
command will actually invoking `rails test` instead.
|
|\
| |
| | |
Access an instance's connection via its class, rather than via #connection
|
| |
| |
| |
| |
| | |
This allows end-users to have a `connection` method on their models
without clashing with ActiveRecord internals.
|
|\ \
| | |
| | | |
Use AS::Notifications to instrument Strong Params
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This should fix travis. For real this time! This is the one!
The readpartial(100) meant that an earlier assert_stdout could chomp up
the output that a later assert_stdout wants, meaning that the later
assertion fails.
Reading only 1 byte at a time ensure that we don't read any more than is
necessary to verify the assertion.
|
|\ \
| | |
| | | |
Use "Fixes" in place of "Fix" in changelogs for consistency [ci skip]
|
|/ / |
|
|\ \
| | |
| | | |
Update documentation for collection<< to reflect behavior for new parent objects.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
collection<< does not automatically fire update sql unless the parent object
is not a new record (and thus has a primary key).
eg:
p = Post.new
p.comments << Comment.new
does not call update sql until:
p.save
at which point it saves the parent object and then the collection object.
changes that to the
|
|\ \ \ |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This replicates the situation described in
https://github.com/rails/strong_parameters/issues/114
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
this was pulled out of Rails 4, see rails/rails#8399 for the discussion
|
| | | | |
|
| | | |
| | | |
| | | | |
if there's content for the right column, then we need the two-column class, if not the one-column
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This should fix travis.
Also ensuring that we don't try to kill when pid is nil.
|
|\ \ \ \
| | | | |
| | | | | |
Renumbering the comments in the application boot process.
|
|/ / / / |
|
|\ \ \ \
| |_|/ /
|/| | | |
ensure response.stream is closed
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Preserve magic comments and content encoding of copied migrations.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
During insertion of "# This migration comes from ... " comment at the beginning of
a migration, presence of magic comment was not considered.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fix incorrectly appended square brackets to a multiple select box
Before:
select(:category, [], {}, {:multiple => true, :name => "post[category][]"})
# => <select name="post[category][][]" ...>
After:
select(:category, [], {}, {:multiple => true, :name => "post[category][]"})
# => <select name="post[category][]" ...>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If an explicit name has been given and it already ends with "[]"
Before:
select(:category, [], {}, multiple: true, name: "post[category][]")
# => <select name="post[category][][]" ...>
After:
select(:category, [], {}, multiple: true, name: "post[category][]")
# => <select name="post[category][]" ...>
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Remove extra whitespace and fix a comment
|
|/ / / /
| | | |
| | | | |
minor comment fix for consistency
|
| | | |
| | | |
| | | |
| | | | |
Introduced in be3e10cd26bc8ec29c6474d03a08a8e733108e7d.
|
|\ \ \ \
| | | | |
| | | | | |
Add rake test description
|
| | | | |
| | | | |
| | | | |
| | | | | |
No behavior change
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
wangjohn/refactoring_nested_associations_for_readability
Refactored nested associations so they are more readable.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
which make it clearer about what's going on.
|
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | | |
Thanks @neerajdotname for noticing this bug.
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fix ActiveRecord `subclass_from_attrs` when eager_load is false.
Conflicts:
activerecord/CHANGELOG.md
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It cannot find subclass because all classes are loaded automatically
when it needs.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Refactored test case with standard variable names
|
|/ / / / / |
|