summaryrefslogtreecommitdiff
path: root/spec/requests/api/helpers_spec.rb
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-01-30 05:10:37 +0000
committerLuke Bennett <lbennett@gitlab.com>2019-01-31 04:56:51 +0000
commite33e3d29ae56ddd10b66513c35f3e318ea375cb9 (patch)
treece5d1515f93c1e38a01c95b5e0f07f1b572f3763 /spec/requests/api/helpers_spec.rb
parentb5f089f2b7100dffb1a346e95022f88e6ff06415 (diff)
downloadgitlab-ce-i18n-cop.tar.gz
Autofixed some untranslated stringsi18n-cop
Diffstat (limited to 'spec/requests/api/helpers_spec.rb')
-rw-r--r--spec/requests/api/helpers_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/helpers_spec.rb b/spec/requests/api/helpers_spec.rb
index a0c64d295c0..0cf1e754d87 100644
--- a/spec/requests/api/helpers_spec.rb
+++ b/spec/requests/api/helpers_spec.rb
@@ -264,7 +264,7 @@ describe API::Helpers do
# We need to stub at a lower level than #sentry_enabled? otherwise
# Sentry is not enabled when the request below is made, and the test
# would pass even without the fix
- expect(ProjectsFinder).to receive(:new).and_raise('Runtime Error!')
+ expect(ProjectsFinder).to receive(:new).and_raise(_('Runtime Error!'))
get api('/projects', personal_access_token: token)
@@ -281,7 +281,7 @@ describe API::Helpers do
let(:event_data) { Raven.client.transport.events.first[1] }
it 'sends the params, excluding confidential values' do
- expect(ProjectsFinder).to receive(:new).and_raise('Runtime Error!')
+ expect(ProjectsFinder).to receive(:new).and_raise(_('Runtime Error!'))
get api('/projects', user), params: { password: 'dont_send_this', other_param: 'send_this' }