Sha256: f2326945ce1a7f0f1741b3d8a6d85675c43212771d57ee4e1b09a12f5f2fa54e

Contents?: true

Size: 1005 Bytes

Versions: 62

Compression:

Stored size: 1005 Bytes

Contents

require 'test_helper'

module Workarea
  class CountryTest < TestCase
    def test_country_searching
      assert_equal(Country['US'], Country.search_for('US'))
      assert_equal(Country['US'], Country.search_for('Us'))
      assert_equal(Country['US'], Country.search_for('USA'))
      assert_equal(Country['US'], Country.search_for('UsA'))
      assert_equal(Country['US'], Country.search_for('United States of America'))
      assert_equal(Country['US'], Country.search_for('united states of america'))
      assert_equal(Country['US'], Country.search_for(Country['US']))
      assert_equal(Country['US'], Country.search_for('United States'))
      assert_equal(Country['US'], Country.search_for('united states'))
      assert_equal(Country['US'], Country.search_for('United states'))
      assert_equal(Country['US'], Country.search_for('アメリカ合衆国'))
    end

    def test_country_json_serialization_isnt_insanely_verbose
      assert_equal('US', Country['US'].as_json)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.27 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.5.4 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.26 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.5.3 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.25 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.5.2 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.24 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.5.1 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.23 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.22 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.5.0 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.21 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.5.0.beta.1 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.20 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.19 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.18 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.17 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.16 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.15 test/lib/workarea/ext/freedom_patches/country_test.rb
workarea-core-3.4.14 test/lib/workarea/ext/freedom_patches/country_test.rb