Commit 25af3a15 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'frozen_string_literal_qa' into 'master'

Add frozen_string_literal to qa/

See merge request gitlab-org/gitlab-ce!27266
parents 0a99e022 0be52bf3
# frozen_string_literal: true
module QA module QA
module CE module CE
module Strategy module Strategy
......
# frozen_string_literal: true
require 'uri' require 'uri'
require 'forwardable' require 'forwardable'
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Component module Component
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Component module Component
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Dashboard module Dashboard
......
# frozen_string_literal: true
module QA module QA
module Page module Page
class Element class Element
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module File module File
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module File module File
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module File module File
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Group module Group
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Issuable module Issuable
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Label module Label
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Layout module Layout
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Main module Main
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Main module Main
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Mattermost module Mattermost
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Mattermost module Mattermost
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module MergeRequest module MergeRequest
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Profile module Profile
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA::Page module QA::Page
module Project::Pipeline module Project::Pipeline
class Index < QA::Page::Base class Index < QA::Page::Base
......
# frozen_string_literal: true
module QA::Page module QA::Page
module Project::Pipeline module Project::Pipeline
class Show < QA::Page::Base class Show < QA::Page::Base
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
module QA # rubocop:disable Naming/FileName # rubocop:disable Naming/FileName
# frozen_string_literal: true
module QA
module Page module Page
module Project module Project
module Settings module Settings
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Project module Project
......
# frozen_string_literal: true
module QA module QA
module Page module Page
module Settings module Settings
......
# frozen_string_literal: true
module QA module QA
module Page module Page
class Validator class Validator
......
# frozen_string_literal: true
require 'pathname' require 'pathname'
module QA module QA
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
class Address class Address
......
# frozen_string_literal: true
require 'airborne' require 'airborne'
module QA module QA
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module API module API
......
# frozen_string_literal: true
require 'rspec/core' require 'rspec/core'
require 'capybara/rspec' require 'capybara/rspec'
require 'capybara-screenshot/rspec' require 'capybara-screenshot/rspec'
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module Key module Key
......
# rubocop:disable Naming/FileName # rubocop:disable Naming/FileName
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module Key module Key
......
# rubocop:disable Naming/FileName # rubocop:disable Naming/FileName
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module Key module Key
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module Key module Key
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module Namespace module Namespace
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
## ##
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
## ##
......
# frozen_string_literal: true
module QA module QA
module Runtime module Runtime
module User module User
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Actable module Actable
......
# frozen_string_literal: true
require 'optparse' require 'optparse'
module QA module QA
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
class Template class Template
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Test module Test
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Test module Test
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Test module Test
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Test module Test
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Test module Test
......
# frozen_string_literal: true
module QA module QA
module Scenario module Scenario
module Test module Test
......
# frozen_string_literal: true
require 'securerandom' require 'securerandom'
require 'mkmf' require 'mkmf'
require 'pathname' require 'pathname'
......
# frozen_string_literal: true
module QA module QA
module Service module Service
class Omnibus class Omnibus
......
# frozen_string_literal: true
require 'securerandom' require 'securerandom'
module QA module QA
......
# frozen_string_literal: true
require 'open3' require 'open3'
module QA module QA
......
# frozen_string_literal: true
require 'securerandom' require 'securerandom'
module QA module QA
......
# frozen_string_literal: true
module QA module QA
context 'Manage', :smoke do context 'Manage', :smoke do
describe 'basic user login' do describe 'basic user login' do
......
# frozen_string_literal: true
require 'rspec/core' require 'rspec/core'
module QA module QA
......
# frozen_string_literal: true
module QA module QA
module Support module Support
module Api module Api
......
# frozen_string_literal: true
describe QA::Git::Location do describe QA::Git::Location do
describe '.new' do describe '.new' do
context 'when URI starts with ssh://' do context 'when URI starts with ssh://' do
......
# frozen_string_literal: true
describe QA::Git::Repository do describe QA::Git::Repository do
include Helpers::StubENV include Helpers::StubENV
......
# frozen_string_literal: true
# Inspired by https://github.com/ljkbennett/stub_env/blob/master/lib/stub_env/helpers.rb # Inspired by https://github.com/ljkbennett/stub_env/blob/master/lib/stub_env/helpers.rb
module Helpers module Helpers
module StubENV module StubENV
......
# frozen_string_literal: true
describe QA::Page::Base do describe QA::Page::Base do
describe 'page helpers' do describe 'page helpers' do
it 'exposes helpful page helpers' do it 'exposes helpful page helpers' do
......
# frozen_string_literal: true
describe QA::Page::Element do describe QA::Page::Element do
describe '#selector' do describe '#selector' do
it 'transforms element name into QA-specific selector' do it 'transforms element name into QA-specific selector' do
......
# frozen_string_literal: true
describe QA::Page::Validator do describe QA::Page::Validator do
describe '#constants' do describe '#constants' do
subject do subject do
......
# frozen_string_literal: true
describe QA::Page::View do describe QA::Page::View do
let(:element) do let(:element) do
double('element', name: :something, pattern: /some element/) double('element', name: :something, pattern: /some element/)
......
# frozen_string_literal: true
describe QA::Runtime::API::Client do describe QA::Runtime::API::Client do
include Helpers::StubENV include Helpers::StubENV
......
# frozen_string_literal: true
describe QA::Runtime::API::Request do describe QA::Runtime::API::Request do
let(:client) { QA::Runtime::API::Client.new('http://example.com') } let(:client) { QA::Runtime::API::Client.new('http://example.com') }
let(:request) { described_class.new(client, '/users') } let(:request) { described_class.new(client, '/users') }
......
# frozen_string_literal: true
describe QA::Runtime::Key::ECDSA do describe QA::Runtime::Key::ECDSA do
describe '#public_key' do describe '#public_key' do
[256, 384, 521].each do |bits| [256, 384, 521].each do |bits|
......
# frozen_string_literal: true
describe QA::Runtime::Key::ED25519 do describe QA::Runtime::Key::ED25519 do
describe '#public_key' do describe '#public_key' do
subject { described_class.new.public_key } subject { described_class.new.public_key }
......
# frozen_string_literal: true
describe QA::Runtime::Key::RSA do describe QA::Runtime::Key::RSA do
describe '#public_key' do describe '#public_key' do
subject { described_class.new.public_key } subject { described_class.new.public_key }
......
# frozen_string_literal: true
describe QA::Runtime::Release do describe QA::Runtime::Release do
context 'when release version has extension strategy' do context 'when release version has extension strategy' do
let(:strategy) { spy('strategy') } let(:strategy) { spy('strategy') }
......
# frozen_string_literal: true
describe QA::Runtime::Scenario do describe QA::Runtime::Scenario do
subject do subject do
Module.new.extend(described_class) Module.new.extend(described_class)
......
# frozen_string_literal: true
describe QA::Scenario::Actable do describe QA::Scenario::Actable do
subject do subject do
Class.new do Class.new do
......
# frozen_string_literal: true
describe QA::Scenario::Bootable do describe QA::Scenario::Bootable do
subject do subject do
Class.new(QA::Scenario::Template) Class.new(QA::Scenario::Template)
......
# frozen_string_literal: true
describe QA::Scenario::Test::Instance::All do describe QA::Scenario::Test::Instance::All do
it_behaves_like 'a QA scenario class' it_behaves_like 'a QA scenario class'
end end
# frozen_string_literal: true
describe QA::Scenario::Test::Instance::Smoke do describe QA::Scenario::Test::Instance::Smoke do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:smoke] } let(:tags) { [:smoke] }
......
# frozen_string_literal: true
describe QA::Scenario::Test::Sanity::Framework do describe QA::Scenario::Test::Sanity::Framework do
it_behaves_like 'a QA scenario class' do it_behaves_like 'a QA scenario class' do
let(:tags) { [:framework] } let(:tags) { [:framework] }
......
# frozen_string_literal: true
describe QA::Scenario::Test::Sanity::Selectors do describe QA::Scenario::Test::Sanity::Selectors do
let(:validator) { spy('validator') } let(:validator) { spy('validator') }
......
# frozen_string_literal: true
require_relative '../qa' require_relative '../qa'
require 'rspec/retry' require 'rspec/retry'
......
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