diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 19:40:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-05 19:40:33 +0000 |
commit | d7c5be92af9c10cf20e78363c188c1a707a6bb90 (patch) | |
tree | df2d354bc4277c7a0324fb8240bd4e24d58007f2 /spec/helpers/application_helper_spec.rb | |
parent | b28d1361dd1ec63053dbfae475097928c6d01116 (diff) | |
download | gitlab-ce-d7c5be92af9c10cf20e78363c188c1a707a6bb90.tar.gz |
Add latest changes from gitlab-org/gitlab@15-6-stable-ee
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 7f838167bd2..261d8c8c302 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -533,25 +533,15 @@ RSpec.describe ApplicationHelper do end describe '#page_class' do - let_it_be(:expected_class) { 'logged-out-marketing-header' } - - let(:current_user) { nil } - - subject do + subject(:page_class) do helper.page_class.flatten end before do - allow(helper).to receive(:current_user) { current_user } + allow(helper).to receive(:current_user).and_return(nil) end - it { is_expected.to include(expected_class) } - - context 'when a user is logged in' do - let(:current_user) { create(:user) } - - it { is_expected.not_to include(expected_class) } - end + it { is_expected.not_to include('logged-out-marketing-header') } end describe '#dispensable_render' do |