Autofix Rubocop RSpec/MatchArray (#24675)
This commit is contained in:
parent
a3393d0d07
commit
5841f1af8c
2 changed files with 5 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue