From 9f8fadbc9cdbb5dff9d250e46d23d9fcd23dee67 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 28 Feb 2025 22:05:17 +0100 Subject: [PATCH] Allow other encountered dig calls in index_advanced spec to pass through --- spec/views/about/index_advanced.html.haml_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/views/about/index_advanced.html.haml_spec.rb b/spec/views/about/index_advanced.html.haml_spec.rb index 000e028d..22308b93 100644 --- a/spec/views/about/index_advanced.html.haml_spec.rb +++ b/spec/views/about/index_advanced.html.haml_spec.rb @@ -13,6 +13,10 @@ describe "about/index_advanced.html.haml", type: :view do subject(:rendered) { render } + before do + allow(APP_CONFIG).to receive(:dig).and_call_original + end + context "registrations are enabled" do before do allow(APP_CONFIG).to receive(:dig).with(:features, :registration, :enabled).and_return(true)