Commit 52ec57dd authored by Tim Zallmann's avatar Tim Zallmann

Trying with context

parent 65d1b801
......@@ -19,6 +19,7 @@ describe 'Promotions', js: true do
end
describe 'for project features in general on premise' do
context 'no license installed' do
before do
allow(License).to receive(:current).and_return(nil)
......@@ -36,8 +37,10 @@ describe 'Promotions', js: true do
expect(find('#promote_service_desk')).to have_content 'Start GitLab Enterprise Edition trial'
end
end
end
describe 'for project features in general for .com', js: true do
context 'for .com' do
before do
allow(Gitlab).to receive(:com?).and_return(true)
end
......@@ -56,6 +59,7 @@ describe 'Promotions', js: true do
expect(find('#promote_service_desk')).to have_content 'Upgrade your plan'
end
end
end
describe 'for service desk', js: true do
before 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