From d5867db2cf7e6c4ef6397499d03415a999d3f696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 7 Sep 2021 01:14:41 +0200 Subject: [PATCH] Remove unnecessary condition to skip tag list test This file only has tests related to tags; if the model doesn't have tags, we simply wouldn't include `it_behaves_as` in their tests instead of including it and then skipping it. --- spec/shared/models/sanitizable.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec/shared/models/sanitizable.rb b/spec/shared/models/sanitizable.rb index 356a625be..49053fb5c 100644 --- a/spec/shared/models/sanitizable.rb +++ b/spec/shared/models/sanitizable.rb @@ -2,12 +2,6 @@ shared_examples "sanitizable" do let(:sanitizable) { build(model_name(described_class)) } describe "#tag_list" do - before do - unless described_class.included_modules.include?(Taggable) - skip "#{described_class} does not have a tag list" - end - end - it "sanitizes the tag list" do sanitizable.tag_list = "user_id=1"