Autofix Rubocop RSpec/MatchArray (#24675)
This commit is contained in:
@ -50,17 +50,17 @@ describe AccountFilter do
|
||||
|
||||
it 'works with @ at the beginning of the username' do
|
||||
filter = described_class.new(username: '@validUserName')
|
||||
expect(filter.results).to match_array [local_account]
|
||||
expect(filter.results).to contain_exactly(local_account)
|
||||
end
|
||||
|
||||
it 'does not work with more than one @ at the beginning of the username' do
|
||||
filter = described_class.new(username: '@@validUserName')
|
||||
expect(filter.results).to_not match_array [local_account]
|
||||
expect(filter.results).to_not contain_exactly(local_account)
|
||||
end
|
||||
|
||||
it 'does not work with @ outside the beginning of the username' do
|
||||
filter = described_class.new(username: 'validUserName@')
|
||||
expect(filter.results).to_not match_array [local_account]
|
||||
expect(filter.results).to_not contain_exactly(local_account)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user