diff options
author | Luke Bennett <lbennett@gitlab.com> | 2019-01-30 05:10:37 +0000 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2019-01-31 04:56:51 +0000 |
commit | e33e3d29ae56ddd10b66513c35f3e318ea375cb9 (patch) | |
tree | ce5d1515f93c1e38a01c95b5e0f07f1b572f3763 /spec/support/helpers | |
parent | b5f089f2b7100dffb1a346e95022f88e6ff06415 (diff) | |
download | gitlab-ce-i18n-cop.tar.gz |
Autofixed some untranslated stringsi18n-cop
Diffstat (limited to 'spec/support/helpers')
-rw-r--r-- | spec/support/helpers/filtered_search_helpers.rb | 2 | ||||
-rw-r--r-- | spec/support/helpers/live_debugger.rb | 6 | ||||
-rw-r--r-- | spec/support/helpers/select2_helper.rb | 2 | ||||
-rw-r--r-- | spec/support/helpers/terms_helper.rb | 2 | ||||
-rw-r--r-- | spec/support/helpers/test_env.rb | 6 |
5 files changed, 9 insertions, 9 deletions
diff --git a/spec/support/helpers/filtered_search_helpers.rb b/spec/support/helpers/filtered_search_helpers.rb index 6569feec39b..466f3ca9f6c 100644 --- a/spec/support/helpers/filtered_search_helpers.rb +++ b/spec/support/helpers/filtered_search_helpers.rb @@ -129,7 +129,7 @@ module FilteredSearchHelpers end def default_placeholder - 'Search or filter results...' + _('Search or filter results...') end def get_filtered_search_placeholder diff --git a/spec/support/helpers/live_debugger.rb b/spec/support/helpers/live_debugger.rb index 911eb48a8ca..dc01a08afe5 100644 --- a/spec/support/helpers/live_debugger.rb +++ b/spec/support/helpers/live_debugger.rb @@ -3,15 +3,15 @@ require 'io/console' module LiveDebugger def live_debug puts - puts "Current example is paused for live debugging." + puts _("Current example is paused for live debugging.") puts "Opening #{current_url} in your default browser..." puts "The current user credentials are: #{@current_user.username} / #{@current_user.password}" if @current_user - puts "Press any key to resume the execution of the example!!" + puts _("Press any key to resume the execution of the example!!") `open #{current_url}` loop until $stdin.getch - puts "Back to the example!" + puts _("Back to the example!") end end diff --git a/spec/support/helpers/select2_helper.rb b/spec/support/helpers/select2_helper.rb index 90618ba5b19..f54b06daafa 100644 --- a/spec/support/helpers/select2_helper.rb +++ b/spec/support/helpers/select2_helper.rb @@ -12,7 +12,7 @@ module Select2Helper def select2(value, options = {}) - raise ArgumentError, 'options must be a Hash' unless options.is_a?(Hash) + raise ArgumentError, _('options must be a Hash') unless options.is_a?(Hash) selector = options.fetch(:from) diff --git a/spec/support/helpers/terms_helper.rb b/spec/support/helpers/terms_helper.rb index a00ec14138b..84a18fb57ad 100644 --- a/spec/support/helpers/terms_helper.rb +++ b/spec/support/helpers/terms_helper.rb @@ -14,6 +14,6 @@ module TermsHelper def expect_to_be_on_terms_page expect(current_path).to eq terms_path - expect(page).to have_content('Please accept the Terms of Service before continuing.') + expect(page).to have_content(_('Please accept the Terms of Service before continuing.')) end end diff --git a/spec/support/helpers/test_env.rb b/spec/support/helpers/test_env.rb index d352a7cdf1a..1919b0e19c3 100644 --- a/spec/support/helpers/test_env.rb +++ b/spec/support/helpers/test_env.rb @@ -181,7 +181,7 @@ module TestEnv spawn_script = Rails.root.join('scripts/gitaly-test-spawn').to_s Bundler.with_original_env do - raise "gitaly spawn failed" unless system(spawn_script) + raise _("gitaly spawn failed") unless system(spawn_script) end @gitaly_pid = Integer(File.read('tmp/tests/gitaly.pid')) @@ -282,7 +282,7 @@ module TestEnv def eager_load_driver_server return unless defined?(Capybara) - puts "Starting the Capybara driver server..." + puts _("Starting the Capybara driver server...") Capybara.current_session.visit '/' end @@ -338,7 +338,7 @@ module TestEnv # Try to reset without fetching to avoid using the network. unless reset.call - raise 'Could not fetch test seed repository.' unless system(*%W(#{Gitlab.config.git.bin_path} -C #{repo_path} fetch origin)) + raise _('Could not fetch test seed repository.') unless system(*%W(#{Gitlab.config.git.bin_path} -C #{repo_path} fetch origin)) # Before we used Git clone's --mirror option, bare repos could end up # with missing refs, clearing them and retrying should fix the issue. |