Sha256: b858c7dfb39f1d9fdefdb36288c8448a9d24002e34a2c10d73796a8c8bf0a86b
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 Bytes
Contents
describe Unidom::Party::Person, type: :model do before :each do end after :each do end context '.validates' do model_attributes = { name: 'Tim' } it_behaves_like 'validates', model_attributes, :name, { } => 0, { name: nil } => 2, { name: '' } => 2, { name: 'A' } => 1, { name: 'AA' } => 0, { name: 'AAA' } => 0, { name: '0' } => 1, { name: '00' } => 0, { name: '000' } => 0, { name: 0 } => 1, { name: 'A'*(described_class.columns_hash['name'].limit-1) } => 0, { name: 'A'*described_class.columns_hash['name'].limit } => 0, { name: 'A'*(described_class.columns_hash['name'].limit+1) } => 1 end context do model_attributes = { name: 'Tim' } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes it_behaves_like 'Unidom::Party::Concerns::AsSourceParty', model_attributes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-1.9.1 | lib/rspec/models/unidom/party/person_spec.rb |
unidom-party-1.9 | lib/rspec/models/unidom/party/person_spec.rb |