Commit 51dc85cb authored by Tim Zallmann's avatar Tim Zallmann

Another try for stubbing

parent 22657a16
......@@ -140,6 +140,8 @@
Check Namespace plan #{ current_application_settings.should_check_namespace_plan? }
%div
Show Callout #{ show_callout?('promote_service_desk_dismissed') }
%div
.com #{ Gitlab.com? }
- if EE::Gitlab::ServiceDesk.enabled?(project: @project)
%hr
......
......@@ -22,6 +22,7 @@ describe 'Promotions', js: true do
context 'no license installed' do
before do
allow(License).to receive(:current) { nil }
allow_any_instance_of(Project).to receive_message_chain(:current_application_settings, :should_check_namespace_plan?) { true }
sign_in(user)
project.team << [user, :master]
......@@ -43,6 +44,7 @@ describe 'Promotions', js: true do
context 'for .com' do
before do
stub_application_setting(check_namespace_plan: true)
allow_any_instance_of(Project).to receive_message_chain(:current_application_settings, :should_check_namespace_plan?) { true }
allow(Gitlab).to receive(:com?) { true }
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