diff --git a/spec/system/private_message_spec.rb b/spec/system/private_message_spec.rb index 40195690f9d64..baad7ba56361f 100644 --- a/spec/system/private_message_spec.rb +++ b/spec/system/private_message_spec.rb @@ -16,8 +16,8 @@ post.topic.remove_allowed_user(sender, recipient) - expect(page).to have_no_css("h1", text: post.topic.title) expect(page).to have_current_path("/u/#{recipient.username}/messages") + expect(page).to have_no_css("h1", text: post.topic.title) end end end