diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-08-21 16:28:07 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-08-22 07:33:20 +0300 |
commit | fb9e059a412d95ee3b7442a472ecfd9c67eafd7b (patch) | |
tree | 4e8c7790296335f28f6bbaa63f9078360fbea37c /spec/models/project_spec.rb | |
parent | 02737b8508eb3cce6d8c5ece1f2ffb4772c609a5 (diff) |
Make sure repository's removal work for legacy and hashed storages
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index c7d2f2063af..2e613c44357 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -2342,6 +2342,14 @@ describe Project do end end + describe '#legacy_storage?' do + it 'returns true when storage_version is nil' do + project = build(:project) + + expect(project.legacy_storage?).to be_truthy + end + end + describe '#rename_repo' do before do # Project#gitlab_shell returns a new instance of Gitlab::Shell on every |