DEV: Remove redundant assertion.

DEV: Remove redundant assertion.

If the post is not present, the test will fail with an error.

diff --git a/spec/components/system_message_spec.rb b/spec/components/system_message_spec.rb
index c35f029..6a77cfb 100644
--- a/spec/components/system_message_spec.rb
+++ b/spec/components/system_message_spec.rb
@@ -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)

GitHub sha: 6d052868

1 Like