expect(subject).toinclude('Your Silver subscription for No Limit Records will expire on 2020-03-09. After that, you will not be able to use merge approvals or epics as well as many other features.')
expect(subject).toinclude('Your Premium subscription for No Limit Records will expire on 2020-03-09. After that, you will not be able to use merge approvals or epics as well as many other features.')
render'shared/billings/trial_status',namespace: group
...
...
@@ -35,13 +35,13 @@ RSpec.describe 'shared/billings/_trial_status.html.haml' do
end
end
context'with a silver trial'do
let(:plan){create(:gold_plan,title: 'Silver')}
context'with a premium trial'do
let(:plan){create(:premium_plan)}
it'displays expiry date and Silver'do
it'displays expiry date and Premium'do
render'shared/billings/trial_status',namespace: group
expect(rendered).tohave_content("Your GitLab.com Silver trial will expire after #{trial_ends_on}. You can retain access to the Silver features by upgrading below.")
expect(rendered).tohave_content("Your GitLab.com Premium trial will expire after #{trial_ends_on}. You can retain access to the Premium features by upgrading below.")