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