Sha256: 883e18eeb17c0c8ff5d227c131d6497a96afeeda03f346ad0676006338882838

Contents?: true

Size: 618 Bytes

Versions: 54

Compression:

Stored size: 618 Bytes

Contents

require 'rails_helper'


describe MagicAddresses::District 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 :city }
    it { should belong_to  :city }
    
  end
  
  
end

Version data entries

54 entries across 54 versions & 1 rubygems

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