DEV: Remove redundant assertion.

If the post is not present, the test will fail with an error.
This commit is contained in:
Guo Xiang Tan
2019-03-12 20:56:18 +08:00
parent db08b59eb2
commit 6d0528687d

View File

@ -15,8 +15,7 @@ describe SystemMessage do
post = system_message.create(:welcome_invite)
topic = post.topic
expect(post).to be_present
expect(post).to be_valid
expect(post.valid?).to eq(true)
expect(topic).to be_private_message
expect(topic).to be_valid
expect(topic.subtype).to eq(TopicSubtype.system_message)