Commit f3f0bea9 authored by Tim Zallmann's avatar Tim Zallmann

Trying to stub show promotions

parent 2893d797
...@@ -49,8 +49,8 @@ describe Groups::AnalyticsController do ...@@ -49,8 +49,8 @@ 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)
stub_application_setting(check_namespace_plan: false) stub_application_setting(check_namespace_plan: false)
@show_promotions = nil
end end
it 'returns page when feature is not available and we show promotions' do it 'returns page when feature is not available and we show promotions' do
......
...@@ -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)
@show_promotions = nil LicenseHelper.stub(: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