aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Revert "Remove `counter_cache_target` which is no longer called"Ryuta Kamizono2018-09-261-1/+1
* Update counter cache in memory if parent target is existedRyuta Kamizono2018-09-261-0/+32
* Remove unused requiresRyuta Kamizono2018-08-251-3/+1
* Add test case to test enum in has_manyRich2018-08-251-0/+22
* Add method_call_assertions and use them instead of Mochautilum2018-08-131-12/+20
* Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-0/+11
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-1/+1
* Merge pull request #32727 from utilum/assert_dont_expectsRafael França2018-04-271-9/+13
|\
| * assert_calledutilum2018-04-261-3/+4
| * assert_not_calledutilum2018-04-261-6/+9
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-2/+2
* | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-0/+74
|/
* Add test case for `collection.size` with dirty targetRyuta Kamizono2018-04-211-0/+10
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-2/+2
* Fix intermittent CI failure due to setting explicit `person.id = 10`Ryuta Kamizono2018-03-301-4/+0
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-0/+7
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-6/+6
* Remove extra whitespaceDaniel Colson2018-01-251-14/+14
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-251-10/+10
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-64/+64
* Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-0/+8
|\
| * Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-0/+8
* | Bugfix foreign key replacement in inverse associationBogdan Gusiev2017-12-271-0/+9
* | Enable `Layout/SpaceBeforeComma` rubocop rule, and fixed moreRyuta Kamizono2017-12-121-1/+1
* | Set counter caches to correct values in fixturesBogdan Gusiev2017-11-081-1/+1
* | Add deterministic sorting order for `test_taking_with_a_number`Ryuta Kamizono2017-08-181-1/+9
* | Fix `reflection.association_primary_key` for `has_many` associationsRyuta Kamizono2017-08-131-3/+14
* | Merge remote-tracking branch 'origin/master' into unlock-minitestRafael Mendonça França2017-08-011-30/+29
|\ \
| * | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
| * | Remove extra `.merge!(order: "id")` for `Relation#first` in testsRyuta Kamizono2017-07-131-30/+27
* | | Merge branch 'master' into unlock-minitestKasper Timm Hansen2017-07-151-2/+57
|\| |
| * | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| * | Merge pull request #29540 from kirs/rubocop-frozen-stringMatthew Draper2017-07-021-0/+1
| |\ \
| | * | Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
| * | | Merge pull request #29631 from kamipo/should_be_clear_association_idsMatthew Draper2017-07-011-0/+5
| |\ \ \
| | * | | Should be clear `@association_ids` when joined newly associated recordRyuta Kamizono2017-06-301-0/+5
| | |/ /
| * | | Merge pull request #28808 from fschwahn/fix-polymorphic-automic-inverseMatthew Draper2017-07-011-0/+14
| |\ \ \ | | |/ / | |/| |
| | * | Add regression test for setting inverse instances on normal & polymorphic rel...Fabian Schwahn2017-04-201-0/+14
| * | | Merge pull request #29611 from kamipo/add_test_case_for_unscoping_default_scopeRafael França2017-06-281-2/+3
| |\ \ \
| | * | | Add a test case for unscoping `default_scope` in associationsRyuta Kamizono2017-06-291-2/+3
| * | | | Use `reload` in `test_find_first_after_reload`Ryuta Kamizono2017-06-281-10/+10
| |/ / /
| * | | Move clearing of @offsets cache to reset_scopeJohn Hawthorn2017-06-211-12/+21
| * | | Clear offset cache on CollectionProxy reset/reloadJohn Hawthorn2017-06-201-0/+26
* | | | Merge branch 'master' into unlock-minitestRafael Mendonça França2017-06-021-2/+10
|\| | |
| * | | Correct a has_many association testKoichi ITO2017-06-011-1/+1
| * | | Fix association with extension issuesRyuta Kamizono2017-05-281-1/+9
* | | | Merge branch 'master' into unlock-minitestKasper Timm Hansen2017-05-291-3/+3
|\| | |
| * | | Restore `fixtures :author_addresses`Ryuta Kamizono2017-04-271-3/+3
* | | | Fix the random failure of `test_create_resets_cached_counters`Prathamesh Sonpatki2017-04-261-0/+3
|/ / /
* | | Merge pull request #28885 from kamipo/remove_useless_test_caseRafael França2017-04-261-5/+0
|\ \ \