Commit d5d72b58 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'dj-update-remaining-rspec-describe-blocks-1' into 'master'

Update outer describe block for internal QA tests 1/2

See merge request gitlab-org/gitlab!43184
parents 238d4148 5b9efb2a
# frozen_string_literal: true
describe ::QA::EE::Runtime::Geo do
RSpec.describe ::QA::EE::Runtime::Geo do
describe '.max_db_replication_time' do
subject { described_class.max_db_replication_time }
......
# frozen_string_literal: true
describe QA::EE::Scenario::Test::Integration::GroupSAML do
RSpec.describe QA::EE::Scenario::Test::Integration::GroupSAML do
describe '#perform' do
it_behaves_like 'a QA scenario class' do
let(:tags) { [:group_saml] }
......
# frozen_string_literal: true
describe QA::Resource::User do
RSpec.describe QA::Resource::User do
describe "#fabricate_via_api!" do
response = Struct.new(:code, :body)
......
# frozen_string_literal: true
describe QA::Git::Location do
RSpec.describe QA::Git::Location do
describe '.new' do
context 'when URI starts with ssh://' do
context 'when URI has port' do
......
# frozen_string_literal: true
describe QA::Git::Repository do
RSpec.describe QA::Git::Repository do
include Helpers::StubENV
shared_context 'unresolvable git directory' do
......
# frozen_string_literal: true
describe QA::Page::Base do
RSpec.describe QA::Page::Base do
describe 'page helpers' do
it 'exposes helpful page helpers' do
expect(subject).to respond_to :refresh, :wait_until, :scroll_to
......
# frozen_string_literal: true
describe QA::Page::Element do
RSpec.describe QA::Page::Element do
describe '#selector' do
it 'transforms element name into QA-specific selector' do
expect(described_class.new(:sign_in_button).selector)
......
......@@ -3,7 +3,7 @@
require 'capybara/dsl'
require 'logger'
describe QA::Support::Page::Logging do
RSpec.describe QA::Support::Page::Logging do
let(:page) { double.as_null_object }
before do
......
# frozen_string_literal: true
describe QA::Page::Validator do
RSpec.describe QA::Page::Validator do
describe '#constants' do
subject do
described_class.new(QA::Page::Project)
......
# frozen_string_literal: true
describe QA::Page::View do
RSpec.describe QA::Page::View do
let(:element) do
double('element', name: :something, pattern: /some element/)
end
......
# frozen_string_literal: true
describe QA::Resource::ApiFabricator do
RSpec.describe QA::Resource::ApiFabricator do
let(:resource_without_api_support) do
Class.new do
def self.name
......
# frozen_string_literal: true
describe QA::Resource::Base do
RSpec.describe QA::Resource::Base do
include Helpers::StubENV
let(:resource) { spy('resource') }
......
# frozen_string_literal: true
describe QA::Resource::Events::Base do
RSpec.describe QA::Resource::Events::Base do
let(:resource) do
Class.new(QA::Resource::Base) do
def api_get_path
......
# frozen_string_literal: true
describe QA::Resource::Events::Project do
RSpec.describe QA::Resource::Events::Project do
let(:resource) do
Class.new(QA::Resource::Base) do
def api_get_path
......
# frozen_string_literal: true
describe QA::Resource::Repository::Push do
RSpec.describe QA::Resource::Repository::Push do
describe '.files=' do
let(:files) do
[
......
# frozen_string_literal: true
describe QA::Resource::SSHKey do
RSpec.describe QA::Resource::SSHKey do
describe '#key' do
it 'generates a default key' do
expect(subject.key).to be_a(QA::Runtime::Key::RSA)
......
# frozen_string_literal: true
describe QA::Resource::User do
RSpec.describe QA::Resource::User do
let(:api_resource) do
{
name: "GitLab QA",
......
# frozen_string_literal: true
describe QA::Runtime::API::Client do
RSpec.describe QA::Runtime::API::Client do
include Helpers::StubENV
describe 'initialization' do
......
# frozen_string_literal: true
describe QA::Runtime::ApplicationSettings do
RSpec.describe QA::Runtime::ApplicationSettings do
let(:api_client) { double('QA::Runtime::API::Client') }
let(:request) { Struct.new(:url).new('http://api') }
let(:get_response) { Struct.new(:body).new("{}") }
......
# frozen_string_literal: true
describe QA::Runtime::Env do
RSpec.describe QA::Runtime::Env do
include Helpers::StubENV
shared_examples 'boolean method' do |**kwargs|
......
# frozen_string_literal: true
describe QA::Runtime::Feature do
RSpec.describe QA::Runtime::Feature do
let(:api_client) { double('QA::Runtime::API::Client') }
let(:request) { Struct.new(:url).new('http://api') }
let(:response_post) { Struct.new(:code).new(201) }
......
# frozen_string_literal: true
describe QA::Runtime::Logger do
RSpec.describe QA::Runtime::Logger do
before do
logger = Logger.new $stdout
logger.level = ::Logger::DEBUG
......
# frozen_string_literal: true
describe QA::Runtime::Namespace do
RSpec.describe QA::Runtime::Namespace do
include Helpers::StubENV
describe '.name' do
......
# frozen_string_literal: true
describe QA::Runtime::Release do
RSpec.describe QA::Runtime::Release do
context 'when release version has extension strategy' do
let(:strategy) { spy('strategy') }
......
# frozen_string_literal: true
describe QA::Runtime::Scenario do
RSpec.describe QA::Runtime::Scenario do
subject do
Module.new.extend(described_class)
end
......
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