aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Expand)AuthorAgeFilesLines
* Remove unused `assert_like` from `Arel::Test`Yasuo Honda2018-05-021-5/+0
* Remove unnecessary requireyuuji.yaginuma2018-05-021-1/+0
* Merge pull request #32784 from jpawlyn/allow-belongs-to-create-for-new-recordRyuta Kamizono2018-05-021-0/+9
|\
| * Allow a belonging to object to be created from a new recordJolyon Pawlyn2018-05-011-0/+9
* | More exercise `test_remove_named_index`Ryuta Kamizono2018-05-021-1/+4
* | Fix typo in ActiveRecord test method nameTakayoshi Nishida2018-05-021-1/+1
* | `require "active_support/test_case"` is not supported since 53e877f7Ryuta Kamizono2018-05-022-2/+2
|/
* Make `Arel::Test` subclass of `ActiveSupport::TestCase`Yasuo Honda2018-05-018-73/+84
* Merge pull request #32727 from utilum/assert_dont_expectsRafael França2018-04-277-147/+248
|\
| * assert_called_withutilum2018-04-264-85/+170
| * assert_calledutilum2018-04-264-28/+31
| * assert_not_calledutilum2018-04-263-34/+47
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-2/+2
* | Merge pull request #32617 from tgturner/size-should-use-available-associationRyuta Kamizono2018-04-271-0/+74
|\ \
| * | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-0/+74
| |/
* / Add test case that assigning belongs_to on destroyed object raises frozen errorRyuta Kamizono2018-04-271-0/+7
|/
* `get_value` needs to be a public methodGraham Turner2018-04-252-0/+10
* Address `NameError: uninitialized constant Arel::Collectors::Bind`Yasuo Honda2018-04-251-0/+1
* Merge pull request #32097 from matthewd/arelMatthew Draper2018-04-2560-0/+6767
|\
| * Arel: rubocop -aMatthew Draper2018-02-2460-1218/+1263
| * Merge Arel into Active RecordMatthew Draper2018-02-2460-0/+6722
* | Using existing models for building multiple has_one through testsRyuta Kamizono2018-04-227-54/+15
* | Merge pull request #32514 from samdec/multiple-has-one-through-associations-b...Ryuta Kamizono2018-04-226-0/+59
|\ \
| * | Fix .new with multiple through associationsSam DeCesare2018-04-096-0/+59
* | | Add test case for `collection.size` with dirty targetRyuta Kamizono2018-04-211-0/+10
* | | Merge pull request #32674 from composerinteralia/relax-assertionRyuta Kamizono2018-04-211-2/+2
|\ \ \
| * | | Relax assertions in connection config testsDaniel Colson2018-04-201-2/+2
* | | | Can preload associations through polymorphic associationsDana Sherson2018-04-202-0/+32
* | | | Merge pull request #31513 from fatkodima/relation-touch_allRafael França2018-04-201-1/+46
|\ \ \ \ | |/ / / |/| | |
| * | | Add `touch_all` method to `ActiveRecord::Relation`fatkodima2018-04-131-1/+46
* | | | Use assert_no_match for test_order_to_unscope_reorderingYasuo Honda2018-04-201-1/+1
* | | | Merge pull request #32645 from maneframe/skip_query_cache_mergeRafael Mendonça França2018-04-191-0/+4
|\ \ \ \
| * | | | Fix relation merging with skip_query_cache!James Williams2018-04-191-0/+4
| |/ / /
* / / / Replace `assert !` with `assert_not`Daniel Colson2018-04-1935-144/+144
|/ / /
* | | don't check for immutability when setting skip_preloading as it doesn't effec...Lachlan Sylvester2018-04-122-1/+9
* | | Prevent changes_to_save from mutating attributesEugene Kenny2018-04-081-0/+8
|/ /
* | Make Mocha setup explcitly Minitest-specificJames Mead2018-04-071-1/+1
* | Merge pull request #32355 from kamipo/delegate_to_klass_in_a_scopeRafael França2018-04-062-0/+15
|\ \
| * | Deprecate accessibility of private/protected class methods in named scopeRyuta Kamizono2018-03-302-2/+10
| * | Bring back private class methods accessibility in named scopeRyuta Kamizono2018-03-271-1/+8
* | | Merge pull request #32441 from composerinteralia/refute-notRafael França2018-04-049-16/+16
|\ \ \
| * | | Autocorrect `refute` RuboCop violationsDaniel Colson2018-04-039-16/+16
* | | | Merge pull request #32414 from bogdan/query-cache-optimizationRafael França2018-04-041-1/+2
|\ \ \ \
| * | | | Optimize the code inside AR::QueryCache middlewareBogdan Gusiev2018-04-041-1/+2
* | | | | Add AR::Base.base_class? predicateBogdan Gusiev2018-04-022-1/+10
| |/ / / |/| | |
* | | | Remove leftover blank sqlite3 file after in memory handler tests.utilum2018-04-011-0/+2
* | | | Fix two-level database configurations with URLsEugene Kenny2018-03-311-10/+52
|/ / /
* | | Fix intermittent CI failure due to setting explicit `person.id = 10`Ryuta Kamizono2018-03-301-4/+0
* | | Merge pull request #32338 from eugeneius/dont_clobber_foreign_keyRyuta Kamizono2018-03-301-0/+2
|\ \ \
| * | | Don't unset foreign key when preloading missing recordEugene Kenny2018-03-241-0/+2