Sha256: b6c99f01f1297b0d48de135096f1558e647accacf1518af55efb00c12a1dbc88
Contents?: true
Size: 808 Bytes
Versions: 15
Compression:
Stored size: 808 Bytes
Contents
require 'spec_helper' describe Internals::Generators::SimilarityGenerator do context 'integration' do it 'should generate the correct values' do generator = described_class.new :anything_really generator.generate.should == {} end it 'should generate the correct values with a given strategy' do generator = described_class.new :meier => nil, :maier => nil, :mayer => nil, :meyer => nil, :peter => nil generator.generate(Internals::Generators::Similarity::DoubleMetaphone.new).should == { :MR => [:meier, :maier, :mayer, :meyer], :PTR => [:peter] } end end end
Version data entries
15 entries across 15 versions & 1 rubygems