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

entity_spec.rb « bulk_imports « entities « api « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 791cd3a20e2eebbaaf3a34801fce9fc311ccd93b (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 API::Entities::BulkImports::Entity, feature_category: :importers do
  let_it_be(:entity) { create(:bulk_import_entity) }

  subject { described_class.new(entity).as_json }

  it 'has the correct attributes' do
    expect(subject).to include(
      :id,
      :bulk_import_id,
      :status,
      :source_full_path,
      :destination_name,
      :destination_slug,
      :destination_namespace,
      :parent_id,
      :namespace_id,
      :project_id,
      :created_at,
      :updated_at,
      :failures,
      :migrate_projects,
      :has_failures
    )
  end
end