spec/global_spec.rb in countries-2.0.0.rc vs spec/global_spec.rb in countries-2.0.0

- old
+ new

@@ -1,29 +1,29 @@ - describe 'global Country class', order: :defined do - context "when loaded via 'iso3166' existance" do - subject { defined?(Country) } +describe 'global Country class', order: :defined do + context "when loaded via 'iso3166' existence" do + subject { defined?(Country) } - it { is_expected.to be_falsey } - end + it { is_expected.to be_falsey } + end - context "when loaded via 'global'" do - before { require 'countries/global' } + context "when loaded via 'global'" do + before { require 'countries/global' } - describe 'existance' do - subject { defined?(Country) } + describe 'existence' do + subject { defined?(Country) } - it { is_expected.to be_truthy } - end + it { is_expected.to be_truthy } + end - describe 'superclass' do - subject { Country.superclass } + describe 'superclass' do + subject { Country.superclass } - it { is_expected.to eq(ISO3166::Country) } - end + 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 + 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