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

Version Path
picky-2.5.2 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.5.1 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.5.0 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.4.3 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.4.2 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.4.1 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.4.0 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.3.0 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.2.1 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.2.0 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.1.2 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.1.1 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.1.0 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.0.0 spec/lib/internals/generators/similarity_generator_spec.rb
picky-2.0.0.pre3 spec/lib/internals/generators/similarity_generator_spec.rb