Sha256: 7e1e30a6136836cf176e9d0210df83c61ced35c2f96dea402aae318bd7e15d1c

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

require 'phonetic'

describe String do
  describe '#metaphone' do
    it 'should return Metaphone code of string' do
      %w(Karen Carina Corin Crain Garneau Gorrono Krenn).each do |name|
        name.metaphone.should == 'KRN'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phonetic-1.2.0 spec/phonetic/core_ext/string/metaphone_spec.rb
phonetic-1.1.0 spec/phonetic/core_ext/string/metaphone_spec.rb
phonetic-1.0.1 spec/phonetic/core_ext/string/metaphone_spec.rb
phonetic-1.0.0 spec/phonetic/core_ext/string/metaphone_spec.rb