Sha256: b281bcd59e202e607a78eb82bfda45d3e7ad38e1f3fcd0fc462ae6e5f2559391
Contents?: true
Size: 861 Bytes
Versions: 1
Compression:
Stored size: 861 Bytes
Contents
require 'spec_helper' module Beatport::Catalog describe Country do describe 'structure' do subject do VCR.use_cassette("country_au") { Country.find('au') } end 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 == "0" } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.5 | spec/catalog/country_spec.rb |