mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			314 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			314 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require 'rails_helper'
 | |
| 
 | |
| RSpec.describe DataImport, type: :model 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 eq false
 | |
|     end
 | |
|   end
 | |
| end
 | 
