From 03a4ea512a47b31a715767437491ebf4b1b4f46c Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 25 Jun 2022 10:17:23 +0200 Subject: [PATCH] Fix title helper tests --- spec/helpers/application_helper/title_methods_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/helpers/application_helper/title_methods_spec.rb b/spec/helpers/application_helper/title_methods_spec.rb index 37591adf..2b3c8bf0 100644 --- a/spec/helpers/application_helper/title_methods_spec.rb +++ b/spec/helpers/application_helper/title_methods_spec.rb @@ -4,6 +4,7 @@ require "rails_helper" describe ApplicationHelper::TitleMethods, type: :helper do let(:user) { FactoryBot.create(:user) } + let(:current_user) { user } # we can't use the `current_user` helper here, because it's not defined in the helper we're testing before do stub_const("APP_CONFIG", {