Sha256: d4c65907947f74aef32228c44ecdb113683f3b1e14a7de396f362d891e1c2bfe

Contents?: true

Size: 523 Bytes

Versions: 28

Compression:

Stored size: 523 Bytes

Contents

require 'test_helper'

module Workarea
  class Segment
    module Rules
      class GeolocationOptionTest < TestCase
        def test_search
          assert_equal([GeolocationOption['US-PA']], GeolocationOption.search('penn'))
          assert_equal([GeolocationOption['US-PA']], GeolocationOption.search('Penn'))
          assert_equal([GeolocationOption['CA']], GeolocationOption.search('cana'))
          assert_equal([GeolocationOption['CA']], GeolocationOption.search('CaNa'))
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.6 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.5 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.4 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.3 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.2 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.1 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.0 test/models/workarea/segment/rules/geolocation_option_test.rb
workarea-core-3.5.0.beta.1 test/models/workarea/segment/rules/geolocation_option_test.rb