Fix title helper tests
This commit is contained in:
parent
a9cfa3fccc
commit
03a4ea512a
|
@ -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", {
|
||||||
|
|
Loading…
Reference in New Issue