Commit 3079aa62 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'frozen-string-enable-spec-views' into 'master'

Enable frozen string for spec/views

See merge request gitlab-org/gitlab!18171
parents fc655f32 8c299992
...@@ -60,11 +60,16 @@ module DiffHelper ...@@ -60,11 +60,16 @@ module DiffHelper
if line.blank? if line.blank?
" ".html_safe " ".html_safe
else else
# We can't use `sub` because the HTML-safeness of `line` will not survive. # `sub` and substring-ing would destroy HTML-safeness of `line`
line[0] = '' if line.start_with?('+', '-', ' ') if line.start_with?('+', '-', ' ')
line.dup.tap do |line|
line[0] = ''
end
else
line line
end end
end end
end
def parallel_diff_discussions(left, right, diff_file) def parallel_diff_discussions(left, right, diff_file)
return unless @grouped_diff_discussions return unless @grouped_diff_discussions
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe SmimeSignatureSettings do describe SmimeSignatureSettings do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe DiffHelper do describe DiffHelper do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'admin/dashboard/index.html.haml' do describe 'admin/dashboard/index.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'admin/sessions/new.html.haml' do describe 'admin/sessions/new.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'ci/status/_badge' do describe 'ci/status/_badge' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'dashboard/projects/_blank_state_admin_welcome.html.haml' do describe 'dashboard/projects/_blank_state_admin_welcome.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'dashboard/projects/_nav.html.haml' do describe 'dashboard/projects/_nav.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'devise/shared/_signin_box' do describe 'devise/shared/_signin_box' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'errors/access_denied' do describe 'errors/access_denied' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'events/event/_push.html.haml' do describe 'events/event/_push.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'groups/_home_panel' do describe 'groups/_home_panel' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'groups/edit.html.haml' do describe 'groups/edit.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'help/instance_configuration' do describe 'help/instance_configuration' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'layouts/_head' do describe 'layouts/_head' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'layouts/nav/sidebar/_admin' do describe 'layouts/nav/sidebar/_admin' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'layouts/nav/sidebar/_project' do describe 'layouts/nav/sidebar/_project' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'notify/pipeline_failed_email.html.haml' do describe 'notify/pipeline_failed_email.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'notify/pipeline_success_email.html.haml' do describe 'notify/pipeline_success_email.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'profiles/show' do describe 'profiles/show' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/_home_panel' do describe 'projects/_home_panel' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/blob/_viewer.html.haml' do describe 'projects/blob/_viewer.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/buttons/_dropdown' do describe 'projects/buttons/_dropdown' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/ci/lints/show' do describe 'projects/ci/lints/show' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/commit/_commit_box.html.haml' do describe 'projects/commit/_commit_box.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/commit/branches.html.haml' do describe 'projects/commit/branches.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/commit/show.html.haml' do describe 'projects/commit/show.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/commits/_commit.html.haml' do describe 'projects/commits/_commit.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/diffs/_stats.html.haml' do describe 'projects/diffs/_stats.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/diffs/_viewer.html.haml' do describe 'projects/diffs/_viewer.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/edit' do describe 'projects/edit' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/environments/terminal' do describe 'projects/environments/terminal' do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "projects/imports/new.html.haml" do describe "projects/imports/new.html.haml" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/issues/_related_branches' do describe 'projects/issues/_related_branches' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/ci/jobs/_build' do describe 'projects/ci/jobs/_build' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/generic_commit_statuses/_generic_commit_status.html.haml' do describe 'projects/generic_commit_statuses/_generic_commit_status.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/jobs/show' do describe 'projects/jobs/show' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/merge_requests/_commits.html.haml' do describe 'projects/merge_requests/_commits.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/merge_requests/creations/_new_submit.html.haml' do describe 'projects/merge_requests/creations/_new_submit.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/merge_requests/diffs/_diffs.html.haml' do describe 'projects/merge_requests/diffs/_diffs.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/merge_requests/edit.html.haml' do describe 'projects/merge_requests/edit.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/merge_requests/show.html.haml' do describe 'projects/merge_requests/show.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/notes/_more_actions_dropdown' do describe 'projects/notes/_more_actions_dropdown' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/pages_domains/show' do describe 'projects/pages_domains/show' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/pipeline_schedules/_pipeline_schedule' do describe 'projects/pipeline_schedules/_pipeline_schedule' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/pipelines/_stage' do describe 'projects/pipelines/_stage' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/services/_form' do describe 'projects/services/_form' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/settings/ci_cd/_autodevops_form' do describe 'projects/settings/ci_cd/_autodevops_form' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/tags/index' do describe 'projects/tags/index' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/tree/_tree_row' do describe 'projects/tree/_tree_row' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'projects/tree/show' do describe 'projects/tree/show' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'shared/milestones/_issuable.html.haml' do describe 'shared/milestones/_issuable.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'shared/milestones/_issuables.html.haml' do describe 'shared/milestones/_issuables.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'shared/milestones/_top.html.haml' do describe 'shared/milestones/_top.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'shared/notes/_form' do describe 'shared/notes/_form' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'shared/projects/_project.html.haml' do describe 'shared/projects/_project.html.haml' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe UpdateProjectStatisticsWorker do describe UpdateProjectStatisticsWorker do
......
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