mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
DEV: Remove redundant assertion.
If the post is not present, the test will fail with an error.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user