Commit 4a035e93 authored by Tim Zallmann's avatar Tim Zallmann

Last test fixed

parent a0a1c03e
...@@ -15,12 +15,14 @@ describe 'layouts/nav/_group' do ...@@ -15,12 +15,14 @@ describe 'layouts/nav/_group' do
end end
context 'no license installed' do context 'no license installed' do
current_user = create(:user) let!(:cuser) { create(:admin) }
allow(helper).to receive(:current_user).and_return(current_user)
before do before do
allow(License).to receive(:current).and_return(nil) allow(License).to receive(:current).and_return(nil)
stub_application_setting(check_namespace_plan: false) stub_application_setting(check_namespace_plan: false)
allow(view).to receive(:can?).and_return(true)
allow(view).to receive(:current_user).and_return(cuser)
end end
it 'is visible when there is no valid license but we show promotions' do it 'is visible when there is no valid license but we show promotions' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment