From a9095d1b6a5c1e1ce8922c2a89eceed67c6b599e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 12 Aug 2021 22:59:47 +0200 Subject: [PATCH] Simplify component test stubbing controller path This is possible due to the changes in commit 6df7f7d05. --- spec/components/shared/advanced_search_component_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/components/shared/advanced_search_component_spec.rb b/spec/components/shared/advanced_search_component_spec.rb index 1bb232cb0..0348d7389 100644 --- a/spec/components/shared/advanced_search_component_spec.rb +++ b/spec/components/shared/advanced_search_component_spec.rb @@ -17,12 +17,10 @@ describe Shared::AdvancedSearchComponent, type: :component do end end - describe "SDG filter" do + describe "SDG filter", controller: ProposalsController do before do Setting["feature.sdg"] = true Setting["sdg.process.proposals"] = true - - allow(component).to receive(:controller_path).and_return("proposals") end it "does not render when the feature is disabled" do