Skip to content
Snippets Groups Projects
Commit a7ba69d6 authored by Linjie Zhang's avatar Linjie Zhang
Browse files

Fix license spec in JH repo

parent 3b0114ee
No related branches found
No related tags found
1 merge request!86210Fix license spec in JH repo
......@@ -31,7 +31,7 @@
context 'with offline cloud license' do
let(:gl_license) { build(:gitlab_license, :cloud, :offline_enabled, starts_at: 'not-a-date') }
let(:error_message) do
'The license key is invalid. Make sure it is exactly as you received it from GitLab Inc.'
_('The license key is invalid. Make sure it is exactly as you received it from GitLab Inc.')
end
it_behaves_like 'an invalid license'
......@@ -48,7 +48,7 @@
it 'adds an error' do
expect(license).not_to be_valid
expect(license.errors.full_messages.to_sentence)
.to include 'The license key is invalid. Make sure it is exactly as you received it from GitLab Inc.'
.to include _('The license key is invalid. Make sure it is exactly as you received it from GitLab Inc.')
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment