1
0
Fork 0
forked from gitea/nas

Fix: Accountのテストがたまに落ちる問題(Mastodon本家の問題?)

This commit is contained in:
KMY 2023-10-07 14:09:02 +09:00
parent 7c09b83b7a
commit 76e4ad05ae

View file

@ -854,7 +854,7 @@ RSpec.describe Account do
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