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

jira_import_resolver_shared_examples.rb « jira_import « graphql « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b2047f1d32c43d447210089b94f2614892ca0872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

RSpec.shared_examples 'no Jira import data present' do
  it 'returns none' do
    expect(resolve_imports).to eq JiraImportState.none
  end
end

RSpec.shared_examples 'no Jira import access' do
  it 'raises error' do
    expect do
      resolve_imports
    end.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable)
  end
end