Sha256: 8aab7afc5a0ec32427a61c4796aedfb98f28ef27ed7cb88a37f099fe3a25c4e8

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

require 'spec_helper'

module Beatport::Catalog
  describe Country do
    describe 'structure' do
      subject { Country.find('au') }
      
      it { should be_a(Country) }
      its (:id) { should ==  5 }
      its (:code) { should == "AUS" }
      its (:code_short) { should == "AU" }
      its (:name) { should == "Australia" }
      its (:vat_enabled) { should == false }
      its (:vat_rate) { should == 0 }
      its (:iso3166_3) { should == "AUS" }
      its (:iso3166_2) { should == "AU" }
      its (:'currency.code') { should == "USD" }
      its (:'currency.name') { should == "Dollar" }
      its (:'states.first.code') { should == 'ACT' }
      its (:'states.first.type') { should == 'territory' } 
      its (:'states.first.name') { should == "Australian Capital Territory" }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beatport-0.1.3 spec/catalog/country_spec.rb
beatport-0.1.2 spec/catalog/country_spec.rb