Sha256: a14e75dcfd50286dad7df77a481cf4e15fb72859b7a61d5d872b535d00f9ca29

Contents?: true

Size: 781 Bytes

Versions: 9

Compression:

Stored size: 781 Bytes

Contents

require 'rspec'
require 'spec_helper'


describe 'helper methods' do

  it 'should include countries names' do
    names = COUNTRY_NAMES
    names.class.should be Array
    names.include?("Colombia").should eq true
    names.should_not be nil
  end

  it 'should include countries nums' do
    names = COUNTRY_NUMS
    names.class.should be Array
    names.include?(170).should eq true
    names.should_not be nil
  end

  it 'should include countries alpha 2' do
    names = COUNTRY_ALPHA2S
    names.class.should be Array
    names.include?("CO").should eq true
    names.should_not be nil
  end

  it 'should include countries alpha 3' do
    names = COUNTRY_ALPHA3S
    names.class.should be Array
    names.include?("COL").should eq true
    names.should_not be nil
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_country_select-1.0.5 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre8 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre7 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre6 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre5 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre4 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre3 spec/form_helper_spec.rb
rails_country_select-1.0.4.pre1 spec/form_helper_spec.rb
rails_country_select-1.0.3 spec/form_helper_spec.rb