diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-07-28 09:53:12 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-07-28 14:44:23 -0700 |
commit | a459e45eac290914c864616468f1527f6b1fdaab (patch) | |
tree | 159d4ca75060be0478feea44457e7acec95de81b /spec | |
parent | 61239585c97f1b092e776d6f8ba0713188860f78 (diff) | |
download | gitlab-ce-a459e45eac290914c864616468f1527f6b1fdaab.tar.gz |
Fix Rubocop offensemk-fix-wiki-backup
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/backup/repository_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/backup/repository_spec.rb b/spec/lib/gitlab/backup/repository_spec.rb index 79b0b5008c5..3af69daa585 100644 --- a/spec/lib/gitlab/backup/repository_spec.rb +++ b/spec/lib/gitlab/backup/repository_spec.rb @@ -81,13 +81,13 @@ describe Backup::Repository do end it 'returns false, regardless of bad cache value' do - expect(Backup::Repository.new.send(:empty_repo?, wiki)).to be_falsey + expect(described_class.new.send(:empty_repo?, wiki)).to be_falsey end end context '`repository.exists?` is correctly cached as true' do it 'returns false' do - expect(Backup::Repository.new.send(:empty_repo?, wiki)).to be_falsey + expect(described_class.new.send(:empty_repo?, wiki)).to be_falsey end end end @@ -102,13 +102,13 @@ describe Backup::Repository do end it 'returns true, regardless of bad cache value' do - expect(Backup::Repository.new.send(:empty_repo?, wiki)).to be_truthy + expect(described_class.new.send(:empty_repo?, wiki)).to be_truthy end end context '`repository.exists?` is correctly cached as false' do it 'returns true' do - expect(Backup::Repository.new.send(:empty_repo?, wiki)).to be_truthy + expect(described_class.new.send(:empty_repo?, wiki)).to be_truthy end end end |