summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/legacy_github_import/issuable_formatter_spec.rb
blob: 3b5d8945344056b1c4e8d5ddc43230e2c910ab21 (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::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