Sha256: 7f5be14f73bcdbca12e4fbd1b31e0b45848e3657e4ab06fafa0e90daccc1b184
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
require 'rspec/models/unidom/party/concerns/as_source_party_shared_examples' require 'rspec/models/unidom/party/concerns/as_target_party_shared_examples' describe Unidom::Party::GovernmentAgency, type: :model do before :each do end after :each do end context do model_attributes = { supervision_region_id: SecureRandom.uuid, supervision_region_type: 'Unidom::Party::SupervisionRegion::Mock', name: 'WalMart', function_code: 'ZZZZ' } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes it_behaves_like 'Unidom::Party::Concerns::AsSourceParty', model_attributes it_behaves_like 'Unidom::Party::Concerns::AsTargetParty', model_attributes it_behaves_like 'validates text', model_attributes, :name, length: 2..described_class.columns_hash['name'].limit end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-1.9.6 | lib/rspec/models/unidom/party/government_agency_spec.rb |