Sha256: 37d0a0dcf6dd7224a66c4f4bee0c79f737016be72277014ad6cc6f10f0d8ef40
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
require 'spec_helper' describe SimpleShipping::Party do it { should be_kind_of SimpleShipping::Abstract::Model } describe 'attributes' do it { should have_attribute :contact } it { should have_attribute :address } it { should have_attribute :account_number } end describe 'validations' do it { should validate_presence_of :contact } it { should validate_presence_of :address } it { should validate_submodel(:address).as(SimpleShipping::Address) } it { should validate_submodel(:contact).as(SimpleShipping::Contact) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_shipping-0.4.7 | spec/lib/simple_shipping/party_spec.rb |
simple_shipping-0.4.6 | spec/lib/simple_shipping/party_spec.rb |