mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove redundant assertion.
If the post is not present, the test will fail with an error.
This commit is contained in:
parent
db08b59eb2
commit
6d0528687d
@ -15,8 +15,7 @@ describe SystemMessage do
|
|||||||
post = system_message.create(:welcome_invite)
|
post = system_message.create(:welcome_invite)
|
||||||
topic = post.topic
|
topic = post.topic
|
||||||
|
|
||||||
expect(post).to be_present
|
expect(post.valid?).to eq(true)
|
||||||
expect(post).to be_valid
|
|
||||||
expect(topic).to be_private_message
|
expect(topic).to be_private_message
|
||||||
expect(topic).to be_valid
|
expect(topic).to be_valid
|
||||||
expect(topic.subtype).to eq(TopicSubtype.system_message)
|
expect(topic.subtype).to eq(TopicSubtype.system_message)
|
||||||
|
Loading…
Reference in New Issue
Block a user