diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-05 21:10:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-05 21:10:06 +0300 |
commit | c8419b0227e069a7403f41589f1d0ef690e762f1 (patch) | |
tree | 7009382402811f9e32b448f68f7f90912237aa03 /spec/presenters | |
parent | 6659634b2bdc3ba362574541985c6852ad1574a4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/project_presenter_spec.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/spec/presenters/project_presenter_spec.rb b/spec/presenters/project_presenter_spec.rb index d7738023805..a7e6bbf19d9 100644 --- a/spec/presenters/project_presenter_spec.rb +++ b/spec/presenters/project_presenter_spec.rb @@ -228,12 +228,8 @@ RSpec.describe ProjectPresenter do let_it_be(:project) { create(:project, :empty_repo) } describe '#storage_anchor_data' do - it 'returns storage data' do - expect(presenter.storage_anchor_data).to have_attributes( - is_link: true, - label: a_string_including('0 B'), - link: nil - ) + it 'does not return storage data' do + expect(presenter.storage_anchor_data).to be_nil end end @@ -282,12 +278,8 @@ RSpec.describe ProjectPresenter do let(:presenter) { described_class.new(project, current_user: user) } describe '#storage_anchor_data' do - it 'returns storage data without usage quotas link for non-admin users' do - expect(presenter.storage_anchor_data).to have_attributes( - is_link: true, - label: a_string_including('0 B'), - link: nil - ) + it 'does not return storage data for non-admin users' do + expect(presenter.storage_anchor_data).to be(nil) end it 'returns storage data with usage quotas link for admin users' do |