Sha256: f12e2d761fcc3178167334c06a8224d86514cd474fb155069559a27682c7ae0a

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

require 'phonetic'

describe String do
  describe '#double_metaphone' do
    it 'should return Double Metaphone code of string' do
      'Gelatin'.double_metaphone.should == ['KLTN', 'JLTN']
    end
  end

  describe '#metaphone2' do
    it 'should return Double Metaphone code of string' do
      'whirlpool'.metaphone2.should == ['ARLP', 'ARLP']
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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