Commit 6f0b9035 authored by Tim Zallmann's avatar Tim Zallmann

Stub License Helper as the instance variable is not resettable

parent f3f0bea9
...@@ -49,7 +49,7 @@ describe Groups::AnalyticsController do ...@@ -49,7 +49,7 @@ describe Groups::AnalyticsController do
context 'unlicensed but we show promotions' do context 'unlicensed but we show promotions' do
before do before do
allow(License).to receive(:current).and_return(nil) allow(License).to receive(:current).and_return(nil)
LicenseHelper.stub(:show_promotions).and_return(true) allow(LicenseHelper).to receive(:show_promotions).and_return(true)
stub_application_setting(check_namespace_plan: false) stub_application_setting(check_namespace_plan: false)
end end
......
...@@ -33,7 +33,7 @@ feature 'Projects > Audit Events', :js do ...@@ -33,7 +33,7 @@ feature 'Projects > Audit Events', :js do
stub_licensed_features(audit_events: false) stub_licensed_features(audit_events: false)
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)
LicenseHelper.stub(:show_promotions).and_return(true) allow(LicenseHelper).to receive(:show_promotions).and_return(true)
end end
it 'returns 200' do it 'returns 200' 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