diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-09-12 13:26:59 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-10-05 15:11:32 +0300 |
commit | 4656283c5cd10116d79812db24c37ff79b0e0273 (patch) | |
tree | bc66bc0e89178eb36c2d6bbcf80c2f0c4fb6170e /spec/models/repository_spec.rb | |
parent | 905d3ed4292e6b274ac51b26b3b3577087c5f737 (diff) |
Gitaly namespace service enabled for GitLab
Diffstat (limited to 'spec/models/repository_spec.rb')
-rw-r--r-- | spec/models/repository_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index 7156c1b7aa8..5764c451b67 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -634,6 +634,10 @@ describe Repository do end describe '#fetch_ref' do + # Setting the var here, sidesteps the stub that makes gitaly raise an error + # before the actual test call + set(:broken_repository) { create(:project, :broken_storage).repository } + describe 'when storage is broken', broken_storage: true do it 'should raise a storage error' do expect_to_raise_storage_error do |