Commit ea183659 authored by Arturo Herrero's avatar Arturo Herrero

RSpec zero monkey patching mode

The plan for RSpec 4.0 is to disable monkey patching, reference:
https://rspec.info/blog/2013/07/the-plan-for-rspec-3/#zero-monkey-patching-mode
https://relishapp.com/rspec/rspec-core/docs/configuration/zero-monkey-patching-mode

This commit stops using RSpec monkey patching in several specs.
parent c7dc919c
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::Issues::Update do
RSpec.describe Mutations::Issues::Update do
let(:issue) { create(:issue) }
let(:user) { create(:user) }
let(:expected_attributes) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::Create do
RSpec.describe Mutations::MergeRequests::Create do
subject(:mutation) { described_class.new(object: nil, context: context, field: nil) }
let_it_be(:project) { create(:project, :public, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::SetAssignees do
RSpec.describe Mutations::MergeRequests::SetAssignees do
let(:merge_request) { create(:merge_request) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::SetLabels do
RSpec.describe Mutations::MergeRequests::SetLabels do
let(:merge_request) { create(:merge_request) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::SetLocked do
RSpec.describe Mutations::MergeRequests::SetLocked do
let(:merge_request) { create(:merge_request) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::SetMilestone do
RSpec.describe Mutations::MergeRequests::SetMilestone do
let(:merge_request) { create(:merge_request) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::SetSubscription do
RSpec.describe Mutations::MergeRequests::SetSubscription do
let(:merge_request) { create(:merge_request) }
let(:project) { merge_request.project }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::MergeRequests::SetWip do
RSpec.describe Mutations::MergeRequests::SetWip do
let(:merge_request) { create(:merge_request) }
let(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::Todos::MarkAllDone do
RSpec.describe Mutations::Todos::MarkAllDone do
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::Todos::MarkDone do
RSpec.describe Mutations::Todos::MarkDone do
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::Todos::RestoreMany do
RSpec.describe Mutations::Todos::RestoreMany do
let_it_be(:current_user) { create(:user) }
let_it_be(:author) { create(:user) }
let_it_be(:other_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Mutations::Todos::Restore do
RSpec.describe Mutations::Todos::Restore do
let_it_be(:current_user) { create(:user) }
let_it_be(:author) { create(:user) }
let_it_be(:other_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::AlertManagement::AlertResolver do
RSpec.describe Resolvers::AlertManagement::AlertResolver do
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::AlertManagement::AlertStatusCountsResolver do
RSpec.describe Resolvers::AlertManagement::AlertStatusCountsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::BaseResolver do
RSpec.describe Resolvers::BaseResolver do
include GraphqlHelpers
let(:resolver) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::BoardListsResolver do
RSpec.describe Resolvers::BoardListsResolver do
include GraphqlHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::BoardsResolver do
RSpec.describe Resolvers::BoardsResolver do
include GraphqlHelpers
let_it_be(:user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::BranchCommitResolver do
RSpec.describe Resolvers::BranchCommitResolver do
include GraphqlHelpers
subject(:commit) { resolve(described_class, obj: branch) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::CommitPipelinesResolver do
RSpec.describe Resolvers::CommitPipelinesResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ResolvesPipelines do
RSpec.describe ResolvesPipelines do
include GraphqlHelpers
subject(:resolver) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe ResolvesProject do
RSpec.describe ResolvesProject do
include GraphqlHelpers
let(:implementing_class) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::DesignAtVersionResolver do
RSpec.describe Resolvers::DesignManagement::DesignAtVersionResolver do
include GraphqlHelpers
include DesignManagementTestHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::DesignResolver do
RSpec.describe Resolvers::DesignManagement::DesignResolver do
include GraphqlHelpers
include DesignManagementTestHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::DesignsResolver do
RSpec.describe Resolvers::DesignManagement::DesignsResolver do
include GraphqlHelpers
include DesignManagementTestHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::Version::DesignAtVersionResolver do
RSpec.describe Resolvers::DesignManagement::Version::DesignAtVersionResolver do
include GraphqlHelpers
include_context 'four designs in three versions'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::Version::DesignsAtVersionResolver do
RSpec.describe Resolvers::DesignManagement::Version::DesignsAtVersionResolver do
include GraphqlHelpers
include_context 'four designs in three versions'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::VersionInCollectionResolver do
RSpec.describe Resolvers::DesignManagement::VersionInCollectionResolver do
include GraphqlHelpers
include DesignManagementTestHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::VersionResolver do
RSpec.describe Resolvers::DesignManagement::VersionResolver do
include GraphqlHelpers
include DesignManagementTestHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::DesignManagement::VersionsResolver do
RSpec.describe Resolvers::DesignManagement::VersionsResolver do
include GraphqlHelpers
include DesignManagementTestHelpers
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::EchoResolver do
RSpec.describe Resolvers::EchoResolver do
include GraphqlHelpers
let(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::EnvironmentsResolver do
RSpec.describe Resolvers::EnvironmentsResolver do
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ErrorTracking::SentryDetailedErrorResolver do
RSpec.describe Resolvers::ErrorTracking::SentryDetailedErrorResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ErrorTracking::SentryErrorCollectionResolver do
RSpec.describe Resolvers::ErrorTracking::SentryErrorCollectionResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ErrorTracking::SentryErrorsResolver do
RSpec.describe Resolvers::ErrorTracking::SentryErrorsResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::GroupResolver do
RSpec.describe Resolvers::GroupResolver do
include GraphqlHelpers
let_it_be(:group1) { create(:group) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::IssuesResolver do
RSpec.describe Resolvers::IssuesResolver do
include GraphqlHelpers
let(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::LastCommitResolver do
RSpec.describe Resolvers::LastCommitResolver do
include GraphqlHelpers
let(:repository) { create(:project, :repository).repository }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::MergeRequestPipelinesResolver do
RSpec.describe Resolvers::MergeRequestPipelinesResolver do
include GraphqlHelpers
let_it_be(:merge_request) { create(:merge_request) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::MergeRequestsResolver do
RSpec.describe Resolvers::MergeRequestsResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project, :repository) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::MetadataResolver do
RSpec.describe Resolvers::MetadataResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Metrics::DashboardResolver do
RSpec.describe Resolvers::Metrics::DashboardResolver do
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Metrics::Dashboards::AnnotationResolver do
RSpec.describe Resolvers::Metrics::Dashboards::AnnotationResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::MilestoneResolver do
RSpec.describe Resolvers::MilestoneResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::NamespaceProjectsResolver do
RSpec.describe Resolvers::NamespaceProjectsResolver do
include GraphqlHelpers
let(:current_user) { create(:user) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ProjectPipelinesResolver do
RSpec.describe Resolvers::ProjectPipelinesResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ProjectResolver do
RSpec.describe Resolvers::ProjectResolver do
include GraphqlHelpers
let_it_be(:project1) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Projects::GrafanaIntegrationResolver do
RSpec.describe Resolvers::Projects::GrafanaIntegrationResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Projects::JiraImportsResolver do
RSpec.describe Resolvers::Projects::JiraImportsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Projects::JiraProjectsResolver do
RSpec.describe Resolvers::Projects::JiraProjectsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Projects::ServicesResolver do
RSpec.describe Resolvers::Projects::ServicesResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Projects::SnippetsResolver do
RSpec.describe Resolvers::Projects::SnippetsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ProjectsResolver do
RSpec.describe Resolvers::ProjectsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ReleaseResolver do
RSpec.describe Resolvers::ReleaseResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::ReleasesResolver do
RSpec.describe Resolvers::ReleasesResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project, :private) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::SnippetsResolver do
RSpec.describe Resolvers::SnippetsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::TodoResolver do
RSpec.describe Resolvers::TodoResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::TreeResolver do
RSpec.describe Resolvers::TreeResolver do
include GraphqlHelpers
let(:repository) { create(:project, :repository).repository }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::UserResolver do
RSpec.describe Resolvers::UserResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Resolvers::Users::SnippetsResolver do
RSpec.describe Resolvers::Users::SnippetsResolver do
include GraphqlHelpers
describe '#resolve' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['AlertManagementAlertStatusCountsType'] do
RSpec.describe GitlabSchema.types['AlertManagementAlertStatusCountsType'] do
specify { expect(described_class.graphql_name).to eq('AlertManagementAlertStatusCountsType') }
it 'exposes the expected fields' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['AlertManagementAlert'] do
RSpec.describe GitlabSchema.types['AlertManagementAlert'] do
specify { expect(described_class.graphql_name).to eq('AlertManagementAlert') }
specify { expect(described_class).to require_graphql_authorizations(:read_alert_management_alert) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['AlertManagementSeverity'] do
RSpec.describe GitlabSchema.types['AlertManagementSeverity'] do
specify { expect(described_class.graphql_name).to eq('AlertManagementSeverity') }
it 'exposes all the severity values' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['AlertManagementStatus'] do
RSpec.describe GitlabSchema.types['AlertManagementStatus'] do
specify { expect(described_class.graphql_name).to eq('AlertManagementStatus') }
describe 'statuses' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['AwardEmoji'] do
RSpec.describe GitlabSchema.types['AwardEmoji'] do
specify { expect(described_class.graphql_name).to eq('AwardEmoji') }
specify { expect(described_class).to require_graphql_authorizations(:read_emoji) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Types::BaseEnum do
RSpec.describe Types::BaseEnum do
describe '#enum' do
let(:enum) do
Class.new(described_class) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Types::BaseField do
RSpec.describe Types::BaseField do
context 'when considering complexity' do
let(:resolver) do
Class.new(described_class) do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Types::BlobViewers::TypeEnum do
RSpec.describe Types::BlobViewers::TypeEnum do
specify { expect(described_class.graphql_name).to eq('BlobViewersType') }
it 'exposes all tree entry types' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['BoardList'] do
RSpec.describe GitlabSchema.types['BoardList'] do
specify { expect(described_class.graphql_name).to eq('BoardList') }
it 'has specific fields' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Board'] do
RSpec.describe GitlabSchema.types['Board'] do
specify { expect(described_class.graphql_name).to eq('Board') }
specify { expect(described_class).to require_graphql_authorizations(:read_board) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Branch'] do
RSpec.describe GitlabSchema.types['Branch'] do
it { expect(described_class.graphql_name).to eq('Branch') }
it { expect(described_class).to have_graphql_fields(:name, :commit) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Types::Ci::DetailedStatusType do
RSpec.describe Types::Ci::DetailedStatusType do
specify { expect(described_class.graphql_name).to eq('DetailedStatus') }
it "has all fields" do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Types::Ci::PipelineType do
RSpec.describe Types::Ci::PipelineType do
specify { expect(described_class.graphql_name).to eq('Pipeline') }
specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Ci::Pipeline) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['CommitActionMode'] do
RSpec.describe GitlabSchema.types['CommitActionMode'] do
it { expect(described_class.graphql_name).to eq('CommitActionMode') }
it 'exposes all the existing commit actions' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['CommitEncoding'] do
RSpec.describe GitlabSchema.types['CommitEncoding'] do
it { expect(described_class.graphql_name).to eq('CommitEncoding') }
it 'exposes all the existing encoding option' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Commit'] do
RSpec.describe GitlabSchema.types['Commit'] do
specify { expect(described_class.graphql_name).to eq('Commit') }
specify { expect(described_class).to require_graphql_authorizations(:download_code) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['ContainerExpirationPolicyCadenceEnum'] do
RSpec.describe GitlabSchema.types['ContainerExpirationPolicyCadenceEnum'] do
let_it_be(:expected_values) { %w[EVERY_DAY EVERY_WEEK EVERY_TWO_WEEKS EVERY_MONTH EVERY_THREE_MONTHS] }
it_behaves_like 'exposing container expiration policy option', :cadence
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['ContainerExpirationPolicyKeepEnum'] do
RSpec.describe GitlabSchema.types['ContainerExpirationPolicyKeepEnum'] do
let_it_be(:expected_values) { %w[ONE_TAG FIVE_TAGS TEN_TAGS TWENTY_FIVE_TAGS FIFTY_TAGS ONE_HUNDRED_TAGS] }
it_behaves_like 'exposing container expiration policy option', :keep_n
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['ContainerExpirationPolicyOlderThanEnum'] do
RSpec.describe GitlabSchema.types['ContainerExpirationPolicyOlderThanEnum'] do
let_it_be(:expected_values) { %w[SEVEN_DAYS FOURTEEN_DAYS THIRTY_DAYS NINETY_DAYS] }
it_behaves_like 'exposing container expiration policy option', :older_than
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['ContainerExpirationPolicy'] do
RSpec.describe GitlabSchema.types['ContainerExpirationPolicy'] do
specify { expect(described_class.graphql_name).to eq('ContainerExpirationPolicy') }
specify { expect(described_class.description).to eq('A tag expiration policy designed to keep only the images that matter most') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['DesignAtVersion'] do
RSpec.describe GitlabSchema.types['DesignAtVersion'] do
it_behaves_like 'a GraphQL type with design fields' do
let(:extra_design_fields) { %i[version design] }
let_it_be(:design) { create(:design, :with_versions) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['DesignCollection'] do
RSpec.describe GitlabSchema.types['DesignCollection'] do
it { expect(described_class).to require_graphql_authorizations(:read_design) }
it 'has the expected fields' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Design'] do
RSpec.describe GitlabSchema.types['Design'] do
it_behaves_like 'a GraphQL type with design fields' do
let(:extra_design_fields) { %i[notes discussions versions] }
let_it_be(:design) { create(:design, :with_versions) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['DesignVersionEvent'] do
RSpec.describe GitlabSchema.types['DesignVersionEvent'] do
it { expect(described_class.graphql_name).to eq('DesignVersionEvent') }
it 'exposes the correct event states' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['DesignVersion'] do
RSpec.describe GitlabSchema.types['DesignVersion'] do
it { expect(described_class).to require_graphql_authorizations(:read_design) }
it 'has the expected fields' do
......
......@@ -2,6 +2,6 @@
require 'spec_helper'
describe GitlabSchema.types['DesignManagement'] do
RSpec.describe GitlabSchema.types['DesignManagement'] do
it { expect(described_class).to have_graphql_fields(:version, :design_at_version) }
end
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['DiffRefs'] do
RSpec.describe GitlabSchema.types['DiffRefs'] do
specify { expect(described_class.graphql_name).to eq('DiffRefs') }
specify { expect(described_class).to have_graphql_fields(:head_sha, :base_sha, :start_sha).only }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Environment'] do
RSpec.describe GitlabSchema.types['Environment'] do
specify { expect(described_class.graphql_name).to eq('Environment') }
it 'has the expected fields' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['SentryDetailedError'] do
RSpec.describe GitlabSchema.types['SentryDetailedError'] do
specify { expect(described_class.graphql_name).to eq('SentryDetailedError') }
specify { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['SentryErrorCollection'] do
RSpec.describe GitlabSchema.types['SentryErrorCollection'] do
specify { expect(described_class.graphql_name).to eq('SentryErrorCollection') }
specify { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['SentryErrorStackTraceEntry'] do
RSpec.describe GitlabSchema.types['SentryErrorStackTraceEntry'] do
specify { expect(described_class.graphql_name).to eq('SentryErrorStackTraceEntry') }
it 'exposes the expected fields' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['SentryErrorStackTrace'] do
RSpec.describe GitlabSchema.types['SentryErrorStackTrace'] do
specify { expect(described_class.graphql_name).to eq('SentryErrorStackTrace') }
specify { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['SentryError'] do
RSpec.describe GitlabSchema.types['SentryError'] do
specify { expect(described_class.graphql_name).to eq('SentryError') }
it 'exposes the expected fields' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['GrafanaIntegration'] do
RSpec.describe GitlabSchema.types['GrafanaIntegration'] do
let(:expected_fields) do
%i[
id
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Group'] do
RSpec.describe GitlabSchema.types['Group'] do
specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Group) }
specify { expect(described_class.graphql_name).to eq('Group') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Types::IssuableSortEnum do
RSpec.describe Types::IssuableSortEnum do
specify { expect(described_class.graphql_name).to eq('IssuableSort') }
it 'exposes all the existing issuable sort values' do
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['IssuableState'] do
RSpec.describe GitlabSchema.types['IssuableState'] do
specify { expect(described_class.graphql_name).to eq('IssuableState') }
it_behaves_like 'issuable state'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['IssueSort'] do
RSpec.describe GitlabSchema.types['IssueSort'] do
specify { expect(described_class.graphql_name).to eq('IssueSort') }
it_behaves_like 'common sort values'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['IssueState'] do
RSpec.describe GitlabSchema.types['IssueState'] do
specify { expect(described_class.graphql_name).to eq('IssueState') }
it_behaves_like 'issuable state'
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['Issue'] do
RSpec.describe GitlabSchema.types['Issue'] do
specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Issue) }
specify { expect(described_class.graphql_name).to eq('Issue') }
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe GitlabSchema.types['JiraImport'] do
RSpec.describe GitlabSchema.types['JiraImport'] do
specify { expect(described_class.graphql_name).to eq('JiraImport') }
it 'has the expected fields' do
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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