mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			300 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			300 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
require 'rails_helper'
 | 
						|
 | 
						|
RSpec.describe DataImport do
 | 
						|
  describe 'associations' do
 | 
						|
    it { is_expected.to belong_to(:account) }
 | 
						|
  end
 | 
						|
 | 
						|
  describe 'validations' do
 | 
						|
    it 'returns false for invalid data type' do
 | 
						|
      expect(build(:data_import, data_type: 'Xyc').valid?).to be false
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |