diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 15:09:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 15:09:11 +0000 |
commit | 0eb3d2f799ce4f4de87fb9fc6fd98e592323bc89 (patch) | |
tree | fd70d5bc63fe152e0a67aaa5a70e4c9f16dc6ffc /spec/models/project_spec.rb | |
parent | 5564275a0b378298dc6281599cbfe71a937109ff (diff) | |
download | gitlab-ce-0eb3d2f799ce4f4de87fb9fc6fd98e592323bc89.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 635db5a73cb..fdcee973fa7 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -3691,7 +3691,7 @@ describe Project do end end - describe '.wrap_authorized_projects_with_cte' do + describe '.wrap_with_cte' do let!(:user) { create(:user) } let!(:private_project) do @@ -3702,10 +3702,10 @@ describe Project do let(:projects) { described_class.all.public_or_visible_to_user(user) } - subject { described_class.wrap_authorized_projects_with_cte(projects) } + subject { described_class.wrap_with_cte(projects) } it 'wrapped query matches original' do - expect(subject.to_sql).to match(/^WITH "authorized_projects" AS/) + expect(subject.to_sql).to match(/^WITH "projects_cte" AS/) expect(subject).to match_array(projects) end end |