diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index fc30b0916779c6..dd1f63ce750927 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -854,7 +854,7 @@ match = Fabricate(:account, username: 'pattern_and_suffix') account = Fabricate(:account, username: 'prefix_and_pattern') - expect(described_class.matches_username('pattern')).to eq [match, account] + expect(described_class.matches_username('pattern')).to contain_exactly(match, account) end end