Skip to content

Commit

Permalink
Merge pull request #43649 from DmitryTsepelev/flaky-spec-for-associat…
Browse files Browse the repository at this point in the history
…ions

Fix flaky test in HasManyThroughDisableJoinsAssociationsTest
  • Loading branch information
gmcgibbon committed Nov 15, 2021
2 parents 32228ff + 5d212a5 commit 1c2468f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/models/author.rb
Expand Up @@ -53,13 +53,13 @@ def ratings

has_many :ratings, through: :comments
has_many :good_ratings,
-> { where("ratings.value > 5") },
-> { where("ratings.value > 5").order(:id) },
through: :comments,
source: :ratings

has_many :no_joins_ratings, through: :no_joins_comments, disable_joins: :true, source: :ratings
has_many :no_joins_good_ratings,
-> { where("ratings.value > 5") },
-> { where("ratings.value > 5").order(:id) },
through: :comments,
source: :ratings,
disable_joins: true
Expand Down

0 comments on commit 1c2468f

Please sign in to comment.