Autofix Rubocop RSpec/MatchArray (#24675)

This commit is contained in:
Nick Schonning
2023-04-26 15:29:36 -04:00
committed by GitHub
parent a3393d0d07
commit 5841f1af8c
2 changed files with 5 additions and 10 deletions

View File

@ -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