21 lines
		
	
	
		
			415 B
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			415 B
		
	
	
	
		
			Ruby
		
	
	
	
# 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
 |