diff options
author | Nick Kipling <nkipling@gitlab.com> | 2019-07-05 15:27:27 +0100 |
---|---|---|
committer | Nick Kipling <nkipling@gitlab.com> | 2019-07-05 16:50:49 +0100 |
commit | 42a582a5de1bb06fd944f3e72a5dc042c15a1519 (patch) | |
tree | e52c4f8b4cae2e5cc4bb39c379ff84b82e8305c0 | |
parent | d0d5cd4bff66f931aa9ebc62adfcd1ed3e70ea25 (diff) | |
download | gitlab-ce-61284-frontend-follow-up-from-add-packages_size-to-projectstatistics.tar.gz |
Updating tests to support new wording of storage details61284-frontend-follow-up-from-add-packages_size-to-projectstatistics
-rw-r--r-- | spec/features/admin/admin_sees_project_statistics_spec.rb | 2 | ||||
-rw-r--r-- | spec/helpers/storage_helper_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/admin/admin_sees_project_statistics_spec.rb b/spec/features/admin/admin_sees_project_statistics_spec.rb index b5323a1c76d..ecd0aab925b 100644 --- a/spec/features/admin/admin_sees_project_statistics_spec.rb +++ b/spec/features/admin/admin_sees_project_statistics_spec.rb @@ -15,7 +15,7 @@ describe "Admin > Admin sees project statistics" do let(:project) { create(:project, :repository) } it "shows project statistics" do - expect(page).to have_content("Storage: 0 Bytes (0 Bytes repositories, 0 Bytes wikis, 0 Bytes build artifacts, 0 Bytes LFS)") + expect(page).to have_content("Storage: 0 Bytes (Repository: 0 Bytes / Wikis: 0 Bytes / Build Artifacts: 0 Bytes / LFS: 0 Bytes)") end end diff --git a/spec/helpers/storage_helper_spec.rb b/spec/helpers/storage_helper_spec.rb index 62c00964524..4bd0fbb76ca 100644 --- a/spec/helpers/storage_helper_spec.rb +++ b/spec/helpers/storage_helper_spec.rb @@ -31,7 +31,7 @@ describe StorageHelper do build_artifacts_size: 30.megabytes)) end - let(:message) { '10 KB repositories, 10 Bytes wikis, 30 MB build artifacts, 20 GB LFS' } + let(:message) { 'Repository: 10 KB / Wikis: 10 Bytes / Build Artifacts: 30 MB / LFS: 20 GB' } it 'works on ProjectStatistics' do expect(helper.storage_counters_details(project.statistics)).to eq(message) |