summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/github_import/issuable_formatter_spec.rb
blob: 6bc5f98ed2c6c039af634ef49b45e77de84d0a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'spec_helper'

describe Gitlab::GithubImport::IssuableFormatter, lib: true 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