Sha256: 22cd948a90f192ff4525614257016a8feb14292e4f6a558a007d3d4f353ed7f0

Contents?: true

Size: 420 Bytes

Versions: 17

Compression:

Stored size: 420 Bytes

Contents

# coding: utf-8

require 'spec_helper'

describe ISO3166::Subdivision do
  let(:countries) { ISO3166::Country.all }
  let(:available_types) { [Hash, NilClass] }

  describe 'translations' do
    it 'should be hash or nil' do
      countries.each do |country|
        country.subdivisions.each do |_, region|
          expect(available_types).to include(region.translations.class)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
countries-3.0.0 spec/subdivision_spec.rb
countries-2.1.4 spec/subdivision_spec.rb
countries-2.1.3 spec/subdivision_spec.rb
countries-2.1.2 spec/subdivision_spec.rb
countries-2.1.1 spec/subdivision_spec.rb
countries-2.1.0 spec/subdivision_spec.rb
countries-2.0.8 spec/subdivision_spec.rb
countries-2.0.7 spec/subdivision_spec.rb
countries-2.0.6 spec/subdivision_spec.rb
countries-2.0.5 spec/subdivision_spec.rb
countries-2.0.4 spec/subdivision_spec.rb
countries-2.0.3 spec/subdivision_spec.rb
countries-2.0.2 spec/subdivision_spec.rb
countries-2.0.1 spec/subdivision_spec.rb
countries-2.0.0 spec/subdivision_spec.rb
countries-2.0.0.rc spec/subdivision_spec.rb
countries-2.0.0.pre.4 spec/subdivision_spec.rb