Sha256: 8e41edc81a58823fb67e9b4de41f0bfd1615b3a0cfabf5ac523cc0b72aa79f36

Contents?: true

Size: 574 Bytes

Versions: 54

Compression:

Stored size: 574 Bytes

Contents

require 'rails_helper'


describe MagicAddresses::Country do
  
  describe 'should have usual attributes' do
    
    # usual
    it { should respond_to :default_name }
    it { should respond_to :iso_code }
    it { should respond_to :dial_code }
    it { should respond_to :fsm_state }
    
    # globalize
    it { should respond_to :name }
    it { should respond_to :read_attribute }
    it { should accept_nested_attributes_for :translations }
    
    # address
    it { should respond_to :addresses }
    it { should have_many  :addresses }
    
    
  end
  
  
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
magic_addresses-0.0.44 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.43 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.42 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.41 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.40 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc8 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc7 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc6 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc5 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc4 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc3 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc2 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.39.rc1 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.38 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.38.beta2 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.38.beta1 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.37 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.36 spec/models/magic_addresses/country_spec.rb
magic_addresses-0.0.35 spec/models/magic_addresses/country_spec.rb