26 lines
538 B
Ruby
26 lines
538 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe API::Entities::BulkImports::Entity 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_namespace,
|
|
:parent_id,
|
|
:namespace_id,
|
|
:project_id,
|
|
:created_at,
|
|
:updated_at,
|
|
:failures
|
|
)
|
|
end
|
|
end
|