Commit 5960754e authored by Ruben Davila's avatar Ruben Davila

Fix route used for new trial and add small spec

parent 2eed4a27
......@@ -12,5 +12,5 @@
= link_to "Enterprise Edition products", "https://about.gitlab.com/products/", target: "_blank", rel: "noopener noreferrer nofollow"
You can try these out for free without
any obligation or payment details.
= link_to new_admin_trials_url, class: "btn btn-new" do
= link_to new_admin_trials_path, class: "btn btn-new" do
Start free trial
FactoryGirl.define do
factory :gitlab_license, class: "Gitlab::License" do
trait :trial do
block_changes_at nil
restrictions do
{ trial: true }
end
......
......@@ -26,5 +26,18 @@ feature "License Admin", feature: true do
end
end
end
context 'with an expired trial license' do
let!(:license) { create(:license, trial: true, expired: true) }
it 'does not mention blocking of changes' do
visit admin_license_path
page.within '.gitlab-ee-trial-banner' do
expect(page).to have_content('Your Enterprise Edition trial license expired on')
expect(page).not_to have_content('Pushing code and creation of issues and merge requests has been disabled')
end
end
end
end
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