Merge branch 'frozen_string_literal_qa' into 'master'

Add frozen_string_literal to qa/

See merge request gitlab-org/gitlab-ce!27266
This commit is contained in:
Sanad Liaquat 2019-04-15 06:54:25 +00:00
commit 25af3a15fc
98 changed files with 198 additions and 1 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module CE
module Strategy

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'uri'
require 'forwardable'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Component

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Component

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Dashboard

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
class Element

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module File

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module File

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module File

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Group

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Issuable

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Label

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Layout

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Main

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Main

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Mattermost

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Mattermost

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module MergeRequest

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Profile

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA::Page
module Project::Pipeline
class Index < QA::Page::Base

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA::Page
module Project::Pipeline
class Show < QA::Page::Base

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,4 +1,7 @@
module QA # rubocop:disable Naming/FileName
# rubocop:disable Naming/FileName
# frozen_string_literal: true
module QA
module Page
module Project
module Settings

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Project

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
module Settings

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Page
class Validator

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'pathname'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
class Address

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'airborne'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
module API

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rspec/core'
require 'capybara/rspec'
require 'capybara-screenshot/rspec'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
module Key

View file

@ -1,4 +1,6 @@
# rubocop:disable Naming/FileName
# frozen_string_literal: true
module QA
module Runtime
module Key

View file

@ -1,4 +1,6 @@
# rubocop:disable Naming/FileName
# frozen_string_literal: true
module QA
module Runtime
module Key

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
module Key

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
module Namespace

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
##

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
##

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Runtime
module User

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Actable

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'optparse'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
class Template

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Test

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Test

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Test

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Test

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Test

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Scenario
module Test

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'securerandom'
require 'mkmf'
require 'pathname'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Service
class Omnibus

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'securerandom'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'open3'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'securerandom'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
context 'Manage', :smoke do
describe 'basic user login' do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rspec/core'
module QA

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module QA
module Support
module Api

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Git::Location do
describe '.new' do
context 'when URI starts with ssh://' do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Git::Repository do
include Helpers::StubENV

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Inspired by https://github.com/ljkbennett/stub_env/blob/master/lib/stub_env/helpers.rb
module Helpers
module StubENV

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Page::Base do
describe 'page helpers' do
it 'exposes helpful page helpers' do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Page::Element do
describe '#selector' do
it 'transforms element name into QA-specific selector' do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Page::Validator do
describe '#constants' do
subject do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Page::View do
let(:element) do
double('element', name: :something, pattern: /some element/)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::API::Client do
include Helpers::StubENV

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::API::Request do
let(:client) { QA::Runtime::API::Client.new('http://example.com') }
let(:request) { described_class.new(client, '/users') }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::Key::ECDSA do
describe '#public_key' do
[256, 384, 521].each do |bits|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::Key::ED25519 do
describe '#public_key' do
subject { described_class.new.public_key }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::Key::RSA do
describe '#public_key' do
subject { described_class.new.public_key }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::Release do
context 'when release version has extension strategy' do
let(:strategy) { spy('strategy') }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Runtime::Scenario do
subject do
Module.new.extend(described_class)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Scenario::Actable do
subject do
Class.new do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Scenario::Bootable do
subject do
Class.new(QA::Scenario::Template)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Scenario::Test::Instance::All do
it_behaves_like 'a QA scenario class'
end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Scenario::Test::Instance::Smoke do
it_behaves_like 'a QA scenario class' do
let(:tags) { [:smoke] }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Scenario::Test::Sanity::Framework do
it_behaves_like 'a QA scenario class' do
let(:tags) { [:framework] }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
describe QA::Scenario::Test::Sanity::Selectors do
let(:validator) { spy('validator') }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative '../qa'
require 'rspec/retry'