Fix title helper tests

This commit is contained in:
Karina Kwiatek 2022-06-25 10:17:23 +02:00 committed by Andreas Nedbal
parent a9cfa3fccc
commit 03a4ea512a
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ require "rails_helper"
describe ApplicationHelper::TitleMethods, type: :helper do describe ApplicationHelper::TitleMethods, type: :helper do
let(:user) { FactoryBot.create(:user) } 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 before do
stub_const("APP_CONFIG", { stub_const("APP_CONFIG", {