Commit ea24db29 authored by Fabio Pitino's avatar Fabio Pitino

Merge branch 'sh-fix-credit-card-typo' into 'master'

Fix typo with credit card

See merge request gitlab-org/gitlab!64817
parents 6e289e0f ac0b29c6
...@@ -64,7 +64,7 @@ module EE ...@@ -64,7 +64,7 @@ module EE
return if project.shared_runners_enabled return if project.shared_runners_enabled
unless current_user.has_required_credit_card_to_enable_shared_runners?(project) unless current_user.has_required_credit_card_to_enable_shared_runners?(project)
project.errors.add(:shared_runners_enabled, _('cannot be enabled until a valid credit credit is on file')) project.errors.add(:shared_runners_enabled, _('cannot be enabled until a valid credit card is on file'))
end end
end end
......
...@@ -60,7 +60,7 @@ RSpec.describe Projects::RunnersController do ...@@ -60,7 +60,7 @@ RSpec.describe Projects::RunnersController do
project.reload project.reload
expect(response).to have_gitlab_http_status(:unauthorized) expect(response).to have_gitlab_http_status(:unauthorized)
expect(json_response['error']).to eq('Shared runners enabled cannot be enabled until a valid credit credit is on file') expect(json_response['error']).to eq('Shared runners enabled cannot be enabled until a valid credit card is on file')
expect(project.shared_runners_enabled).to eq(false) expect(project.shared_runners_enabled).to eq(false)
end end
end end
......
...@@ -70,7 +70,7 @@ RSpec.describe Projects::UpdateService, '#execute' do ...@@ -70,7 +70,7 @@ RSpec.describe Projects::UpdateService, '#execute' do
project.reload project.reload
expect(result).to eq(status: :error, message: 'Shared runners enabled cannot be enabled until a valid credit credit is on file') expect(result).to eq(status: :error, message: 'Shared runners enabled cannot be enabled until a valid credit card is on file')
expect(project.shared_runners_enabled).to eq(false) expect(project.shared_runners_enabled).to eq(false)
end end
end end
......
...@@ -37937,7 +37937,7 @@ msgstr "" ...@@ -37937,7 +37937,7 @@ msgstr ""
msgid "cannot be enabled unless all domains have TLS certificates" msgid "cannot be enabled unless all domains have TLS certificates"
msgstr "" msgstr ""
msgid "cannot be enabled until a valid credit credit is on file" msgid "cannot be enabled until a valid credit card is on file"
msgstr "" msgstr ""
msgid "cannot be modified" msgid "cannot be modified"
......
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