Commit a459e45e authored by Michael Kozono's avatar Michael Kozono

Fix Rubocop offense

parent 61239585
...@@ -81,13 +81,13 @@ describe Backup::Repository do ...@@ -81,13 +81,13 @@ describe Backup::Repository do
end end
it 'returns false, regardless of bad cache value' do 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
end end
context '`repository.exists?` is correctly cached as true' do context '`repository.exists?` is correctly cached as true' do
it 'returns false' 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 end
end end
...@@ -102,13 +102,13 @@ describe Backup::Repository do ...@@ -102,13 +102,13 @@ describe Backup::Repository do
end end
it 'returns true, regardless of bad cache value' do 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
end end
context '`repository.exists?` is correctly cached as false' do context '`repository.exists?` is correctly cached as false' do
it 'returns true' 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment