From d955a205841bbb1661503dd66877a24fe46d5af6 Mon Sep 17 00:00:00 2001 From: Joonas Date: Wed, 4 Sep 2024 15:22:50 +0300 Subject: [PATCH] Remove extra spec --- app/cells/decidim/plans/author/flag.erb | 8 +++---- spec/requests/plan_search_spec.rb | 30 ------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/app/cells/decidim/plans/author/flag.erb b/app/cells/decidim/plans/author/flag.erb index 24a4a958..0cf5da99 100644 --- a/app/cells/decidim/plans/author/flag.erb +++ b/app/cells/decidim/plans/author/flag.erb @@ -1,5 +1,3 @@ -<% if flaggable? %> - -<% end %> + diff --git a/spec/requests/plan_search_spec.rb b/spec/requests/plan_search_spec.rb index 6bb91f7f..9e9609f7 100644 --- a/spec/requests/plan_search_spec.rb +++ b/spec/requests/plan_search_spec.rb @@ -222,36 +222,6 @@ end end - describe "related_to filter" do - let(:filter_params) { { related_to: } } - - context "when filtering by related to resources" do - let(:related_to) { "Decidim::DummyResources::DummyResource".underscore } - let(:dummy_component) { create(:component, manifest_name: "dummy", participatory_space:) } - let(:dummy_resource) { create(:dummy_resource, component: dummy_component) } - - let(:related_plan) { create(:plan, :accepted, component:) } - let(:related_plan2) { create(:plan, :accepted, component:) } - let(:other_plans) { create_list(:plan, 3, component:) } - let(:search_resources) do - other_plans - - dummy_resource.link_resources([related_plan], "included_plans") - related_plan2.link_resources([dummy_resource], "included_plans") - end - - it "returns only plans related to results" do - [related_plan, related_plan2].each do |pl| - expect(subject).to have_escaped_html(translated(pl.title)) - end - - other_plans.each do |pl| - expect(subject).not_to have_escaped_html(translated(pl.title)) - end - end - end - end - describe "tags filter" do let(:filter_params) { { with_any_tag: tags } }