Commit cc7eb982 authored by Tim Zallmann's avatar Tim Zallmann

Resetting it for tests the temp var

parent 1548a494
......@@ -79,7 +79,7 @@ module LicenseHelper
if selected_user
return @show_promotions if defined?(@show_promotions)
@show_promotions =
@show_promotions =
if current_application_settings.should_check_namespace_plan?
true
else
......
......@@ -50,6 +50,7 @@ describe Groups::AnalyticsController do
before do
allow(License).to receive(:current).and_return(nil)
stub_application_setting(check_namespace_plan: false)
controller.instance_variable_set(:@show_promotions, nil)
end
it 'returns page when feature is not available and we show promotions' do
......
......@@ -33,9 +33,10 @@ feature 'Projects > Audit Events', :js do
stub_licensed_features(audit_events: false)
allow(License).to receive(:current).and_return(nil)
stub_application_setting(check_namespace_plan: false)
controller.instance_variable_set(:@show_promotions, nil)
end
it 'returns 404' do
it 'returns 200' do
visit project_audit_events_path(project)
expect(page.status_code).to eq(200)
......
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