Sha256: 6b90503c03a75505f45cfbcb2451905893b97a088e15cf4b0715e06518563875
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
describe 'global Country class' do context "when loaded via 'iso3166' existance" do subject { defined?(Country) } it { is_expected.to be_falsey } end context "when loaded via 'global'" do before { require 'countries/global' } describe 'existance' do subject { defined?(Country) } it { is_expected.to be_truthy } end describe 'superclass' do subject { Country.superclass } it { is_expected.to eq(ISO3166::Country) } end describe 'to_s' do it 'should return the country name' do expect(Country.new('GB').to_s).to eq('United Kingdom') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
countries-2.0.0.pre.2 | spec/global_spec.rb |
countries-2.0.0.pre | spec/global_spec.rb |