Commit 2893d797 authored by Tim Zallmann's avatar Tim Zallmann

Fix for @show_promotions

parent cc7eb982
...@@ -50,7 +50,7 @@ describe Groups::AnalyticsController do ...@@ -50,7 +50,7 @@ describe Groups::AnalyticsController 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)
controller.instance_variable_set(:@show_promotions, nil) @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)
controller.instance_variable_set(:@show_promotions, nil) @show_promotions = nil
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