Sha256: dd78db34fdba9c5dbfcd4f5c26a3593fae84d17ee7fae49e85178b9a78590fed

Contents?: true

Size: 924 Bytes

Versions: 29

Compression:

Stored size: 924 Bytes

Contents

# encoding: utf-8

require 'test/unit'
require '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

29 entries across 29 versions & 16 rubygems

Version Path
Pr0d1r2-geokit-1.4.1 test/test_inflector.rb
andre-geokit-1.4.1 test/test_inflector.rb
andre-geokit-1.5.0 test/test_inflector.rb
darrell-geokit-1.4.1.1 test/test_inflector.rb
drogus-geokit-1.4.2 test/test_inflector.rb
flowers-geokit-1.4.1 test/test_inflector.rb
mussegam-geokit-1.4.1 test/test_inflector.rb
geokit-premier-0.1.0 test/test_inflector.rb
geokit-premier-0.0.7 test/test_inflector.rb
geokit-with-google-premier-1.5.5 test/test_inflector.rb
geokit-with-google-premier-1.5.0 test/test_inflector.rb
geokit-with-premier-support-1.5.0 test/test_inflector.rb
geokit-1.6.0 test/test_inflector.rb
rjaswal-geokit-1.5.1 test/test_inflector.rb
rjaswal-geokit-1.5.0.2 test/test_inflector.rb
geokit-premier-0.0.5 test/test_inflector.rb
geokit-premier-0.0.4 test/test_inflector.rb
badnaam-geokit-1.5.1 test/test_inflector.rb
badnaam-geokit-1.5.0 test/test_inflector.rb
bjeanes-geokit-1.5.1 test/test_inflector.rb