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