diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/initializers/00_rails_disable_joins_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/initializers/00_rails_disable_joins_spec.rb')
-rw-r--r-- | spec/initializers/00_rails_disable_joins_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/initializers/00_rails_disable_joins_spec.rb b/spec/initializers/00_rails_disable_joins_spec.rb index 78e78b6810b..3b390f1ef17 100644 --- a/spec/initializers/00_rails_disable_joins_spec.rb +++ b/spec/initializers/00_rails_disable_joins_spec.rb @@ -98,8 +98,8 @@ RSpec.describe 'DisableJoins' do primary_model.has_one :test_bridge, anonymous_class: bridge_model, foreign_key: :primary_record_id bridge_model.belongs_to :test_secondary, anonymous_class: secondary_model, foreign_key: :secondary_record_id - primary_model.has_one :test_secondary, through: :test_bridge, anonymous_class: secondary_model, - disable_joins: -> { joins_disabled_flag } + primary_model.has_one :test_secondary, + through: :test_bridge, anonymous_class: secondary_model, disable_joins: -> { joins_disabled_flag } primary_record = primary_model.create! secondary_record = secondary_model.create! @@ -149,7 +149,7 @@ RSpec.describe 'DisableJoins' do primary_model.has_many :test_bridges, anonymous_class: bridge_model, foreign_key: :primary_record_id bridge_model.has_many :test_secondaries, anonymous_class: secondary_model, foreign_key: :bridge_record_id primary_model.has_many :test_secondaries, through: :test_bridges, anonymous_class: secondary_model, - disable_joins: -> { disabled_join_flag } + disable_joins: -> { disabled_join_flag } primary_record = primary_model.create! bridge_record = bridge_model.create!(primary_record_id: primary_record.id) |