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

issuable_formatter_spec.rb « legacy_github_import « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5d2e00890b2af15b6b6fe9dcfffdba11f7b1ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::LegacyGithubImport::IssuableFormatter do
  let(:raw_data) do
    double(number: 42)
  end

  let(:project) { double(import_type: 'github') }
  let(:issuable_formatter) { described_class.new(project, raw_data) }

  describe '#project_association' do
    it { expect { issuable_formatter.project_association }.to raise_error(NotImplementedError) }
  end

  describe '#number' do
    it { expect(issuable_formatter.number).to eq(42) }
  end

  describe '#find_condition' do
    it { expect(issuable_formatter.find_condition).to eq({ iid: 42 }) }
  end
end