Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_security_analyzer_spec.rb « ci_configuration « security « mutations « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 668768189df31557bd9a20858addf277557ef76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Mutations::Security::CiConfiguration::BaseSecurityAnalyzer do
  include GraphqlHelpers

  it 'raises a NotImplementedError error if the resolve method is called on the base class' do
    user = create(:user)
    mutation = described_class.new(context: { current_user: user }, object: nil, field: nil)
    project = create(:project, :public, :repository)
    project.add_developer(user)

    expect { mutation.resolve(project_path: project.full_path ) }.to raise_error(NotImplementedError)
  end
end