Commit 0ead47a3 authored by Tim Zallmann's avatar Tim Zallmann

Another try stubbing license

parent 51dc85cb
......@@ -21,8 +21,7 @@ describe 'Promotions', js: true do
describe 'for project features in general on premise' 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 }
stub_application_setting_on_object(project, should_check_namespace_plan: true)
sign_in(user)
project.team << [user, :master]
......@@ -46,6 +45,7 @@ describe 'Promotions', js: true 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 }
License.destroy_all
end
it 'should have the Upgrade your plan button' 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