Sha256: 23979d6784caa00f068312b1e12d716c5ba538f720bd3baa6ae20fee08e8d103
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
require File.dirname(__FILE__)/'..'/'..'/'test_helper' class WordAndNounInflectorTest < Test::Unit::TestCase include NounInflectorTestCases PluralToSingular.each do |plural, singular| define_method "test_#{plural}_plural" do assert(Word.new(plural).plural?) end end SingularToPlural.each do |singular, plural| define_method "test_#{singular}_singular" do assert(Word.new(singular).singular?) end end # PluralToSingular.each do |plural, singular| # define_method "test_#{singular}_not_plural" do # assert(!Word.new(singular).plural?) # end # end # # PluralToSingular.each do |plural, singular| # define_method "test_#{plural}_not_singular" do # assert(!Word.new(plural).singular?) # end # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
odin-0.0.4 | test/integration/en/word_and_noun_inflector_test.rb |
odin-0.1.0.alpha.1 | test/integration/en/word_and_noun_inflector_test.rb |