Commit a0a1c03e authored by Tim Zallmann's avatar Tim Zallmann

Whitespace + Helper problems in test

parent b6b6cbd2
...@@ -15,9 +15,10 @@ describe 'layouts/nav/_group' do ...@@ -15,9 +15,10 @@ describe 'layouts/nav/_group' do
end end
context 'no license installed' do context 'no license installed' do
current_user = create(:user)
allow(helper).to receive(:current_user).and_return(current_user)
before do before do
current_user = create(:user)
allow(helper).to receive(:current_user).and_return(current_user)
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)
end end
......
...@@ -239,7 +239,7 @@ describe 'Promotions', js: true do ...@@ -239,7 +239,7 @@ describe 'Promotions', js: true do
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)
group.add_owner(user) group.add_owner(user)
sign_in(user) sign_in(user)
end end
......
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