summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/github_import/single_endpoint_notes_importing_spec.rb
blob: 64dbc939348e5a3eecb6d0e04841dd6ba6d93cc3 (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
25
26
27
28
29
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::GithubImport::SingleEndpointNotesImporting do
  let(:importer_class) do
    Class.new do
      def self.name
        'MyImporter'
      end

      include(Gitlab::GithubImport::SingleEndpointNotesImporting)
    end
  end

  let(:importer_instance) { importer_class.new }

  describe '#parent_collection' do
    it { expect { importer_instance.parent_collection }.to raise_error(NotImplementedError) }
  end

  describe '#parent_imported_cache_key' do
    it { expect { importer_instance.parent_imported_cache_key }.to raise_error(NotImplementedError) }
  end

  describe '#page_counter_id' do
    it { expect { importer_instance.page_counter_id(build(:merge_request)) }.to raise_error(NotImplementedError) }
  end
end