feat: Add bulk imports API for contacts (#1724)
This commit is contained in:
13
spec/models/data_import_spec.rb
Normal file
13
spec/models/data_import_spec.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user