Sha256: 50316db339cdb90bfd4cafd22653ee0e673b61b22cd0daf2bfa375f055015aac

Contents?: true

Size: 621 Bytes

Versions: 54

Compression:

Stored size: 621 Bytes

Contents

require 'rails_helper'


describe MagicAddresses::State do
  
  describe 'should have usual attributes' do
    
    # usual
    it { should respond_to :default_name }
    it { should respond_to :short_name }
    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 }
    
    # more
    it { should respond_to :country }
    it { should belong_to  :country }
    
  end
  
  
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
magic_addresses-0.0.34 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.33 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.32 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.31 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.30 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.29 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.28 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.27 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.26 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.25 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.24 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.23 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.22 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.21 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.20 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.19 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.18 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.17 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.16 spec/models/magic_addresses/state_spec.rb
magic_addresses-0.0.15 spec/models/magic_addresses/state_spec.rb