summaryrefslogtreecommitdiff
path: root/spec/helpers/storage_helper_spec.rb
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-05-02 18:37:38 +0000
committerWinnie Hellmann <winnie@gitlab.com>2019-05-02 18:37:38 +0000
commitca09e3fce7d739b41ab0e45d05a878be0e0b8356 (patch)
tree64fc578138377b1d6111b2ae91a0f522b756a5aa /spec/helpers/storage_helper_spec.rb
parentacaef5e35b9519b5e4ebcefee274e8c8f3d8c85a (diff)
downloadgitlab-ce-revert-f1526ccd.tar.gz
Revert "Merge branch 'ac-package-storage-stats' into 'master'"revert-f1526ccd
This reverts merge request !27373
Diffstat (limited to 'spec/helpers/storage_helper_spec.rb')
-rw-r--r--spec/helpers/storage_helper_spec.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/helpers/storage_helper_spec.rb b/spec/helpers/storage_helper_spec.rb
index 50c74a7c2f9..03df9deafa1 100644
--- a/spec/helpers/storage_helper_spec.rb
+++ b/spec/helpers/storage_helper_spec.rb
@@ -18,28 +18,4 @@ describe StorageHelper do
expect(helper.storage_counter(100_000_000_000_000_000_000_000)).to eq("86,736.2 EB")
end
end
-
- describe "#storage_counters_details" do
- let(:namespace) { create :namespace }
- let(:project) do
- create(:project,
- namespace: namespace,
- statistics: build(:project_statistics,
- repository_size: 10.kilobytes,
- lfs_objects_size: 20.gigabytes,
- build_artifacts_size: 30.megabytes))
- end
-
- let(:message) { '10 KB repositories, 30 MB build artifacts, 20 GB LFS' }
-
- it 'works on ProjectStatistics' do
- expect(helper.storage_counters_details(project.statistics)).to eq(message)
- end
-
- it 'works on Namespace.with_statistics' do
- namespace_stats = Namespace.with_statistics.find(project.namespace.id)
-
- expect(helper.storage_counters_details(namespace_stats)).to eq(message)
- end
- end
end