From ca09e3fce7d739b41ab0e45d05a878be0e0b8356 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Thu, 2 May 2019 18:37:38 +0000 Subject: Revert "Merge branch 'ac-package-storage-stats' into 'master'" This reverts merge request !27373 --- spec/helpers/storage_helper_spec.rb | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'spec/helpers/storage_helper_spec.rb') 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 -- cgit v1.2.1