@@ -83,10 +92,10 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do
end
context"when the subscription hasn't been properly downgraded yet"do
let(:plan_name){::Plan::SILVER}
let(:plan_name){::Plan::PREMIUM}
it"shows the expiring message"do
expect(subject).toinclude('Your subscription expired! No worries, you can still use all the Silver features for now. You have 0 days to renew your subscription.')
expect(subject).toinclude('Your subscription expired! No worries, you can still use all the Premium features for now. You have 0 days to renew your subscription.')
end
end
...
...
@@ -122,7 +131,7 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do
end
context'when it is not currently blocking changes'do
expect(subject).toinclude('No worries, you can still use all the Gold features for now. You have 2 days to renew your subscription.')
expect(subject).toinclude('No worries, you can still use all the Ultimate features for now. You have 2 days to renew your subscription.')
end
end
end
...
...
@@ -158,7 +167,7 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do
context'without namespace'do
it'has an expiration blocking message'do
expect(subject).toinclude('Your Gold subscription will expire on 2020-03-09. After that, you will not be able to create issues or merge requests as well as many other features.')
expect(subject).toinclude("Your #{plan_name.capitalize} subscription will expire on 2020-03-09. After that, you will not be able to create issues or merge requests as well as many other features.")
end
end
...
...
@@ -256,4 +265,5 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do