Sha256: febffbfda53ed2d423418ac8bca8a8e9a5866b16a0c7ce128f72e3288141a3f6
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
require 'spec_helper' describe Category do let(:index) { Index::Memory.new :some_index, source: [] } let(:category) { described_class.new :some_category, index } it 'should set defaults correctly' do category.indexing_exact.weights_strategy.should == Generators::Weights::Default category.indexing_exact.partial_strategy.should be_kind_of(Generators::Partial::None) category.indexing_exact.similarity_strategy.should == Generators::Similarity::Default category.indexing_partial.weights_strategy.should be_kind_of(Generators::Weights::Logarithmic) category.indexing_partial.partial_strategy.should == Generators::Partial::Default category.indexing_partial.similarity_strategy.should be_kind_of(Generators::Similarity::None) category.indexed_exact.similarity_strategy.should == Generators::Similarity::Default category.indexed_partial.similarity_strategy.should be_kind_of(Generators::Similarity::None) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/category_spec.rb |