Sha256: bcece0d80f011867df19e06c95f0e9a934f6cea0df52b28061146ef365f029e3

Contents?: true

Size: 841 Bytes

Versions: 1

Compression:

Stored size: 841 Bytes

Contents

require 'spec_helper'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beatport-0.1.1 spec/catalog/country_spec.rb