Commit d61fbeb9 authored by Mayra Cabrera's avatar Mayra Cabrera

Fixes WordArray cop on repository model spec

Fixes Style/WordArray on repository model spec
parent dfbba26d
......@@ -1446,17 +1446,13 @@ describe Repository do
let(:empty_repository) { create(:project_empty_repo).repository }
it 'returns empty array for an empty repository' do
# rubocop:disable Style/WordArray
expect(empty_repository.blobs_at(['master', 'foobar'])).to eq([])
# rubocop:enable Style/WordArray
expect(empty_repository.blobs_at(%w[master foobar])).to eq([])
end
it 'returns blob array for a non-empty repository' do
repository.create_file(User.last, 'foobar', 'CONTENT', message: 'message', branch_name: 'master')
# rubocop:disable Style/WordArray
blobs = repository.blobs_at([['master', 'foobar']])
# rubocop:enable Style/WordArray
blobs = repository.blobs_at([%w[master foobar]])
expect(blobs.first.name).to eq('foobar')
expect(blobs.size).to eq(1)
......
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