diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 15:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 15:08:09 +0300 |
commit | 0d0cddc9ce20c5a7d8a2723d0aa620ca184a711a (patch) | |
tree | 64f91b4d4ca74aa09d2a62ac5910820d087ed7cb /spec/lib/feature | |
parent | 6044caed20964a70c1ac6c5a3365d567ed96dfde (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/feature')
-rw-r--r-- | spec/lib/feature/gitaly_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/feature/gitaly_spec.rb b/spec/lib/feature/gitaly_spec.rb index afb522d05e1..08651c42276 100644 --- a/spec/lib/feature/gitaly_spec.rb +++ b/spec/lib/feature/gitaly_spec.rb @@ -32,5 +32,15 @@ describe Feature::Gitaly do it { is_expected.to be_a(Hash) } it { is_expected.to eq("gitaly-feature-mep-mep" => "true") } + + context 'when table does not exist' do + before do + allow(::Gitlab::Database).to receive(:cached_table_exists?).and_return(false) + end + + it 'returns an empty Hash' do + expect(subject).to eq({}) + end + end end end |