diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-04-15 06:54:25 +0000 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-04-15 06:54:25 +0000 |
commit | 25af3a15fc7819b6fe7620bdaa72a4281252079c (patch) | |
tree | 9631db5c47c8830903b875e3cb50b6f854c842a4 /qa/spec | |
parent | 0a99e0220d9371423039f05f700af3675b26624f (diff) | |
parent | 0be52bf32fa38aca777401bb9e1bec9e011229e6 (diff) | |
download | gitlab-ce-25af3a15fc7819b6fe7620bdaa72a4281252079c.tar.gz |
Merge branch 'frozen_string_literal_qa' into 'master'
Add frozen_string_literal to qa/
See merge request gitlab-org/gitlab-ce!27266
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/git/location_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/git/repository_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/helpers/stub_env.rb | 2 | ||||
-rw-r--r-- | qa/spec/page/base_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/page/element_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/page/validator_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/page/view_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/api/client_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/api/request_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/key/ecdsa_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/key/ed25519_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/key/rsa_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/release_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/runtime/scenario_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/scenario/actable_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/scenario/bootable_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/scenario/test/instance/all_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/scenario/test/instance/smoke_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/scenario/test/sanity/framework_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/scenario/test/sanity/selectors_spec.rb | 2 | ||||
-rw-r--r-- | qa/spec/spec_helper.rb | 2 |
21 files changed, 42 insertions, 0 deletions
diff --git a/qa/spec/git/location_spec.rb b/qa/spec/git/location_spec.rb index aef906ee836..0c57291666f 100644 --- a/qa/spec/git/location_spec.rb +++ b/qa/spec/git/location_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Git::Location do describe '.new' do context 'when URI starts with ssh://' do diff --git a/qa/spec/git/repository_spec.rb b/qa/spec/git/repository_spec.rb index 0ded33a73a2..776dce31d4f 100644 --- a/qa/spec/git/repository_spec.rb +++ b/qa/spec/git/repository_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Git::Repository do include Helpers::StubENV diff --git a/qa/spec/helpers/stub_env.rb b/qa/spec/helpers/stub_env.rb index 62b4a1df787..8ad864dbec8 100644 --- a/qa/spec/helpers/stub_env.rb +++ b/qa/spec/helpers/stub_env.rb @@ -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 diff --git a/qa/spec/page/base_spec.rb b/qa/spec/page/base_spec.rb index 32a350f2154..9e3f143ea5b 100644 --- a/qa/spec/page/base_spec.rb +++ b/qa/spec/page/base_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Page::Base do describe 'page helpers' do it 'exposes helpful page helpers' do diff --git a/qa/spec/page/element_spec.rb b/qa/spec/page/element_spec.rb index 8598c57ad34..d5d6dff69da 100644 --- a/qa/spec/page/element_spec.rb +++ b/qa/spec/page/element_spec.rb @@ -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 diff --git a/qa/spec/page/validator_spec.rb b/qa/spec/page/validator_spec.rb index 0ae6e66d767..bdff96e267c 100644 --- a/qa/spec/page/validator_spec.rb +++ b/qa/spec/page/validator_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Page::Validator do describe '#constants' do subject do diff --git a/qa/spec/page/view_spec.rb b/qa/spec/page/view_spec.rb index d7b3ccd316d..3cb64dcd9c2 100644 --- a/qa/spec/page/view_spec.rb +++ b/qa/spec/page/view_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Page::View do let(:element) do double('element', name: :something, pattern: /some element/) diff --git a/qa/spec/runtime/api/client_spec.rb b/qa/spec/runtime/api/client_spec.rb index af43facc73d..cf19b52700b 100644 --- a/qa/spec/runtime/api/client_spec.rb +++ b/qa/spec/runtime/api/client_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Runtime::API::Client do include Helpers::StubENV diff --git a/qa/spec/runtime/api/request_spec.rb b/qa/spec/runtime/api/request_spec.rb index 08233e3c1d6..a20f1cf8559 100644 --- a/qa/spec/runtime/api/request_spec.rb +++ b/qa/spec/runtime/api/request_spec.rb @@ -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') } diff --git a/qa/spec/runtime/key/ecdsa_spec.rb b/qa/spec/runtime/key/ecdsa_spec.rb index 8951e82b9bb..3f9718e62c5 100644 --- a/qa/spec/runtime/key/ecdsa_spec.rb +++ b/qa/spec/runtime/key/ecdsa_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Runtime::Key::ECDSA do describe '#public_key' do [256, 384, 521].each do |bits| diff --git a/qa/spec/runtime/key/ed25519_spec.rb b/qa/spec/runtime/key/ed25519_spec.rb index 4844e7affdf..08f232260af 100644 --- a/qa/spec/runtime/key/ed25519_spec.rb +++ b/qa/spec/runtime/key/ed25519_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Runtime::Key::ED25519 do describe '#public_key' do subject { described_class.new.public_key } diff --git a/qa/spec/runtime/key/rsa_spec.rb b/qa/spec/runtime/key/rsa_spec.rb index fbcc7ffdcb4..fcb52f541bf 100644 --- a/qa/spec/runtime/key/rsa_spec.rb +++ b/qa/spec/runtime/key/rsa_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Runtime::Key::RSA do describe '#public_key' do subject { described_class.new.public_key } diff --git a/qa/spec/runtime/release_spec.rb b/qa/spec/runtime/release_spec.rb index e6b5a8dc315..b5a7dd5269d 100644 --- a/qa/spec/runtime/release_spec.rb +++ b/qa/spec/runtime/release_spec.rb @@ -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') } diff --git a/qa/spec/runtime/scenario_spec.rb b/qa/spec/runtime/scenario_spec.rb index 70fc71ffc02..30ada4529ed 100644 --- a/qa/spec/runtime/scenario_spec.rb +++ b/qa/spec/runtime/scenario_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Runtime::Scenario do subject do Module.new.extend(described_class) diff --git a/qa/spec/scenario/actable_spec.rb b/qa/spec/scenario/actable_spec.rb index 422763910e4..589d0c61993 100644 --- a/qa/spec/scenario/actable_spec.rb +++ b/qa/spec/scenario/actable_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Scenario::Actable do subject do Class.new do diff --git a/qa/spec/scenario/bootable_spec.rb b/qa/spec/scenario/bootable_spec.rb index bd89b21f7fb..e8accb45518 100644 --- a/qa/spec/scenario/bootable_spec.rb +++ b/qa/spec/scenario/bootable_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Scenario::Bootable do subject do Class.new(QA::Scenario::Template) diff --git a/qa/spec/scenario/test/instance/all_spec.rb b/qa/spec/scenario/test/instance/all_spec.rb index 9311d1d8199..8acd56914c5 100644 --- a/qa/spec/scenario/test/instance/all_spec.rb +++ b/qa/spec/scenario/test/instance/all_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Scenario::Test::Instance::All do it_behaves_like 'a QA scenario class' end diff --git a/qa/spec/scenario/test/instance/smoke_spec.rb b/qa/spec/scenario/test/instance/smoke_spec.rb index b5db9783af3..6cc71699be9 100644 --- a/qa/spec/scenario/test/instance/smoke_spec.rb +++ b/qa/spec/scenario/test/instance/smoke_spec.rb @@ -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] } diff --git a/qa/spec/scenario/test/sanity/framework_spec.rb b/qa/spec/scenario/test/sanity/framework_spec.rb index 44ac780556e..a63c59e2995 100644 --- a/qa/spec/scenario/test/sanity/framework_spec.rb +++ b/qa/spec/scenario/test/sanity/framework_spec.rb @@ -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] } diff --git a/qa/spec/scenario/test/sanity/selectors_spec.rb b/qa/spec/scenario/test/sanity/selectors_spec.rb index 45d21d54955..e18babaed63 100644 --- a/qa/spec/scenario/test/sanity/selectors_spec.rb +++ b/qa/spec/scenario/test/sanity/selectors_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe QA::Scenario::Test::Sanity::Selectors do let(:validator) { spy('validator') } diff --git a/qa/spec/spec_helper.rb b/qa/spec/spec_helper.rb index a235fddabca..24ff1523ba7 100644 --- a/qa/spec/spec_helper.rb +++ b/qa/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative '../qa' require 'rspec/retry' |