diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-24 17:26:18 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-24 17:27:47 +0800 |
commit | bea29327af6d14bea58f82304115735fd0b13d3f (patch) | |
tree | fa8905a397814372e0531403750ede5d4b91ecdf /spec/services/projects | |
parent | 140ac8d2ad81f03f67dddcb565458e9baee79755 (diff) | |
download | gitlab-ce-bea29327af6d14bea58f82304115735fd0b13d3f.tar.gz |
Just use methods over constants, so that we could
take the advantage that if they're not used, we
could garbage collect those data, reducing memory
footprint.
Diffstat (limited to 'spec/services/projects')
-rw-r--r-- | spec/services/projects/import_export/cleanup_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/projects/import_export/cleanup_service_spec.rb b/spec/services/projects/import_export/cleanup_service_spec.rb index b46efc40a2f..108d0ea2ecc 100644 --- a/spec/services/projects/import_export/cleanup_service_spec.rb +++ b/spec/services/projects/import_export/cleanup_service_spec.rb @@ -37,7 +37,7 @@ describe Projects::ImportExport::CleanupService do end end - described_class::RESERVED_REFS_NAMES.each do |name| + described_class.reserved_refs_names.each do |name| context "with a ref in refs/#{name}/tmp" do before do repository.write_ref("refs/#{name}/tmp", sha) |