Sha256: 377d304fbb0776bfdf70b000d0bc973db19211dc2c040b3d35597c2f26f67425
Contents?: true
Size: 971 Bytes
Versions: 3
Compression:
Stored size: 971 Bytes
Contents
# encoding: utf-8 require 'test/unit' require File.expand_path(File.dirname(__FILE__) + '/../lib/geokit') class InflectorTest < Test::Unit::TestCase #:nodoc: all def test_titleize assert_equal 'Sugar Grove', Geokit::Inflector.titleize('Sugar Grove') assert_equal 'Sugar Grove', Geokit::Inflector.titleize('Sugar grove') assert_equal 'Sugar Grove', Geokit::Inflector.titleize('sugar Grove') assert_equal 'Sugar Grove', Geokit::Inflector.titleize('sugar grove') end def test_titleize_with_unicode assert_equal 'Borås', Geokit::Inflector.titleize('Borås') assert_equal 'Borås', Geokit::Inflector.titleize('borås') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('Borås (Abc)') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('Borås (abc)') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('borås (Abc)') assert_equal 'Borås (Abc)', Geokit::Inflector.titleize('borås (abc)') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sayso-geokit-1.5.0.3.003 | test/test_inflector.rb |
sayso-geokit-1.5.0.3.002 | test/test_inflector.rb |
sayso-geokit-1.5.0.3.001 | test/test_inflector.rb |