diff options
author | Nick Kipling <nkipling@gitlab.com> | 2019-07-09 16:43:53 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2019-07-09 16:43:53 +0300 |
commit | 476f0955480eb67fe3c6e2a95137caf91a27b5d4 (patch) | |
tree | f0839265b4d57bff512b87fdb7f623ca40fc941d /spec | |
parent | 2523672b20b2d8ecee5186319bdb26d7934bcee1 (diff) |
Implemented frontend suggestions
Converted storage details into a small partial
Reworded the storage details summary as suggested
Updated pot file
Diffstat (limited to 'spec')
-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) |