DEV: Fix randomly failing spec.

This commit is contained in:
Guo Xiang Tan 2020-08-12 16:34:24 +08:00
parent 6792d7f50c
commit 603a4d1794
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -84,7 +84,7 @@ describe Imap::Sync do
topic = Topic.last
expect(topic.title).to eq(subject)
expect(topic.user.email).to eq(from)
expect(topic.tags.pluck(:name)).to eq(%w[seen important test-label])
expect(topic.tags.pluck(:name)).to contain_exactly("seen", "important", "test-label")
post = topic.first_post
expect(post.raw).to eq('This is an email *body*. :smile:')