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

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

require 'spec_helper'

RSpec.describe API::Entities::BulkImport, feature_category: :importers do
  let_it_be(:import) { create(:bulk_import) }

  subject { described_class.new(import).as_json }

  it 'has the correct attributes' do
    expect(subject).to include(
      :id,
      :status,
      :source_type,
      :created_at,
      :updated_at,
      :has_failures
    )
  end
end