Sha256: c9f8841890f8981c6d0a1b539beea3868fde2ca8a70b6587f3e60518c360ce86

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

require 'helper'

class TestInflectious < Test::Unit::TestCase
  should "gerundize regular word" do
    assert_equal ActiveSupport::Inflector.gerundize("walk"), "walking"
  end
  should "gerundize word ending with a vowel" do
    assert_equal ActiveSupport::Inflector.gerundize("grate"), "grating"
  end
  should "gerundize word ending with vowel consonant" do
    assert_equal ActiveSupport::Inflector.gerundize("sit"), "sitting"
  end
  should "gerundize word ending with vowel vowel consonant" do
    assert_equal ActiveSupport::Inflector.gerundize("greet"), "greeting"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inflectious-0.2.4 test/test_inflectious.rb
inflectious-0.2.3 test/test_inflectious.rb
inflectious-0.2.2 test/test_inflectious.rb
inflectious-0.2.1 test/test_inflectious.rb
inflectious-0.2.0 test/test_inflectious.rb