diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index dd1f63ce750927..c13d57c7614cc1 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -845,7 +845,7 @@ match = Fabricate(:account, display_name: 'pattern and suffix') account = Fabricate(:account, display_name: 'prefix and pattern') - expect(described_class.matches_display_name('pattern')).to eq [match, account] + expect(described_class.matches_display_name('pattern')).to contain_exactly(match, account) end end