Sha256: 56afae6d5de710ba9fce9f3c71354633270b408eda8cc9b899b23f67bcab1eb7
Contents?: true
Size: 552 Bytes
Versions: 9
Compression:
Stored size: 552 Bytes
Contents
require 'rails_helper' module Logistics module Core RSpec.describe CommonDocument, type: :model do it 'has a valid factory' do expect(create(:common_document)).to be_valid end it 'is invalid with no document type' do expect(build(:common_document, :document_type => nil)).not_to be_valid end it 'is invalid with duplicate document type' do cd = create(:common_document) expect(build(:common_document, :document_type => cd.document_type)).not_to be_valid end end end end
Version data entries
9 entries across 9 versions & 1 rubygems