Sha256: b8df5257ef6700b0913fe2a617de755bdb6da04e595e6a07cd8dc0d22fec3e32

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

require 'spec_helper'

describe String do
  describe '#soundex' do
    it 'should return soundex code of word' do
      'Ackerman'.soundex.should == 'A265'
      'Fusedale'.soundex.should == 'F234'
      'Grahl'.soundex.should == 'G640'
      'Hatchard'.soundex.should == 'H326'
      'implementation'.soundex.should == 'I514'
      'Prewett'.soundex.should == 'P630'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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