Skip to content

Commit 026140a

Browse files
committed
rubocop %w instead of quotes in array
1 parent fc6a0bf commit 026140a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/lib/tind_spread/tind_batch_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,20 @@
7676

7777
describe '#validate_header_row' do
7878
it 'returns an empty array for valid headers' do
79-
headers = ['001__a', '245__a', '500__3']
79+
headers = %w[001__a 245__a 500__3]
8080
errors = tind_batch.validate_header_row(headers)
8181
expect(errors).to be_empty
8282
end
8383

8484
it 'returns error messages for invalid headers' do
85-
headers = ['Header1', 'Header2']
85+
headers = %w[Header1 Header2]
8686
errors = tind_batch.validate_header_row(headers)
8787
expect(errors).to include('Invalid header name: Header1')
8888
expect(errors).to include('Invalid header name: Header2')
8989
end
9090

9191
it 'returns errors only for invalid headers in a mixed list' do
92-
headers = ['001__a', 'InvalidHeader', '245__a']
92+
headers = %w[001__a InvalidHeader 245__a]
9393
errors = tind_batch.validate_header_row(headers)
9494
expect(errors).to include('Invalid header name: InvalidHeader')
9595
expect(errors.length).to eq(1)

0 commit comments

Comments
 (0)