| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
fix typo in Active Record CHANGELOG [ci skip]
|
|/ |
|
|
|
|
|
| |
The bug with `ActiveSupport::TimeZone.parse` described in #9678 was
unwittingly fixed in 005d910 so add some tests to prevent regression.
|
|
|
|
| |
:heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart: @pixeltrix
|
| |
|
|\
| |
| | |
Also quote extension name in disable_extension
|
|/
|
| |
A patch was committed recently which quoted the extension name in the SQL for `enable_extension`. But the same wasn't done for `disable_extension`.
|
|
|
|
| |
Cache the value of "super" in a variable and use it instead.
|
| |
|
|\
| |
| | |
dependent: :destroy should call destroy_all
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit https://github.com/rails/rails/pull/9668 shows warning
when `delete_all` is invoked with `:dependent` option
`:destroy`.
Unfortunately invoking `Post.destroy_all` invokes
`post.comments.delete_all` as part of `has_many` callbacks.
This commit ensures that instead `post.comments.destroy_all` is
invoked and in the process no warning is generated.
See issue #9567 for details .
|
|\ \
| | |
| | |
| | |
| | | |
Pass column to quote when copying a sqlite table.
To make quote escape binary data correctly it needs the column passed in.
|
| | |
| | |
| | |
| | | |
To make quote escape binary data correctly it needs the column passed in.
|
|\ \ \
| |/ /
|/| | |
Fix typo in DependenciesTestHelpers module name
|
| | | |
|
| |/
|/| |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Show warning message if delete_all is firing callbacks
|
| | |
| | |
| | |
| | |
| | |
| | | |
`post.comments.delete_all` will fire callbacks if :dependent option is
:destroy . It will be fixed in Rails 4.1 . In the meantime display
a warning . Look at #9567 for details .
|
| | |
| | |
| | |
| | |
| | |
| | | |
Using regexps as arguments without parentheses end up raising:
warning: ambiguous first argument; put parentheses or even spaces
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Make sure that the test case is run under test env
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Unset $RAILS_ENV that got set by abstract_unit to trigger the default.
* split out environment setting since Ruby 1.9.3 doesn't support inline
ENV setting.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
https://github.com/rails/rails/pull/3180\#issuecomment-14705821 has
mention of rendering going from 1-2ms to 4 seconds with this on,
which seems reasonable: debugging is slow.
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Fix test failure introduced in 3ed41e57
|
|/ /
| |
| |
| | |
I forgot to run the test suit after changing the task name. :bomb:
|
|\ \
| | |
| | | |
Add `rails test` command to run the test suite
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Also, print out deprecation warning for other rake tasks except
`rake test` and `rake` (default)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
* `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.
|
|\ \ \
| | | |
| | | | |
Cleanup tests for unused variables
|
| | |/
| |/| |
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
tkhr/add-assert-to-test_company_descends_from_active_record
add an missing assertion to inheritance_test.rb
|
|/ /
| |
| |
| |
| |
| | |
assertion for
https://github.com/rails/rails/blob/ad624345e54bd20802de67b2b5c9ef29ecf5
d5f4/activerecord/lib/active_record/inheritance.rb#L32
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fixed tests `to_time` returning an instance of `Time` in the local system timezone.
Tests for to_time returning an instance of Time in the local system timezone did not take in account DST when they used mixed timezone declarations like 'US/Eastern' and '-0500'.
Replaced timezone with DST by timezone without DST.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Change from each to each_value on hash to avoid unused variable warning
|
| | | | |
|