Sha256: 03372f79fa7d52106ecb45f832e086e4f17319475fad290a7e2622b20fb8df05
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
require 'spec_helper' describe SimpleShipping::Address do it { should be_kind_of SimpleShipping::Abstract::Model } describe 'attributes' do it { should have_attribute :country_code } it { should have_attribute :state_code } it { should have_attribute :city } it { should have_attribute :street_line } it { should have_attribute :street_line_2 } it { should have_attribute :street_line_3 } it { should have_attribute :postal_code } end describe 'validations' do it {should validate_presence_of :country_code } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_shipping-0.4.7 | spec/lib/simple_shipping/address_spec.rb |
simple_shipping-0.4.6 | spec/lib/simple_shipping/address_spec.rb |