Commit 692570c8 authored by Tim Zallmann's avatar Tim Zallmann

Updating Promotion Spec

parent 0ead47a3
...@@ -21,13 +21,14 @@ describe 'Promotions', js: true do ...@@ -21,13 +21,14 @@ describe 'Promotions', js: true do
describe 'for project features in general on premise' do describe 'for project features in general on premise' do
context 'no license installed' do context 'no license installed' do
before do before do
stub_application_setting_on_object(project, should_check_namespace_plan: true) License.destroy_all
sign_in(user) sign_in(user)
project.team << [user, :master] project.team << [user, :master]
end end
it 'should have the contact admin line' do it 'should have the contact admin line' do
visit edit_project_path(project)
expect(find('#promote_service_desk')).to have_content 'Contact your Administrator to upgrade your license.' expect(find('#promote_service_desk')).to have_content 'Contact your Administrator to upgrade your license.'
end end
...@@ -43,9 +44,7 @@ describe 'Promotions', js: true do ...@@ -43,9 +44,7 @@ describe 'Promotions', js: true do
context 'for .com' do context 'for .com' do
before do before do
stub_application_setting(check_namespace_plan: true) 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 } allow(Gitlab).to receive(:com?) { true }
License.destroy_all
end end
it 'should have the Upgrade your plan button' do 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