From bf5afd8e7c80f8e4ec0d487dd9fe7fae27c4b145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 30 Jun 2021 16:08:15 +0200 Subject: [PATCH] Add missing expectation to related content test It looks like we accidentally missed it while rebasing commit 48dc72cea9. --- spec/models/related_content_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/models/related_content_spec.rb b/spec/models/related_content_spec.rb index 86bef5d23..2ccc62f09 100644 --- a/spec/models/related_content_spec.rb +++ b/spec/models/related_content_spec.rb @@ -54,6 +54,8 @@ describe RelatedContent do it "is not valid with child relationable ID of a non-existent record" do related_content.child_relationable_id = related_content.child_relationable.class.last.id + 1 + + expect(related_content).not_to be_valid end describe "create_opposite_related_content" do