Sha256: b08ae6eb4bd4f488120dc081bb9e65a005e76daf8e32ce89245f39d216269964
Contents?: true
Size: 850 Bytes
Versions: 19
Compression:
Stored size: 850 Bytes
Contents
# encoding: utf-8 # require 'spec_helper' describe "Regression" do # # This was described by Niko # # and references a case where # # an attribute and the id referenced # # to the same String. # # # context 'fun cases' do # it 'stopwords destroy ids (final: id reference on attribute)' do # index = Picky::Index.new :stopwords do # key_format :to_sym # indexing splits_text_on: /[\\\/\s\"\'\&_,;:]+/i, # stopwords: /\b(and|the|or|on|of|in|der|die|das|und|oder)\b/i # category :text # end # # referenced = "this and that" # # require 'ostruct' # # thing = OpenStruct.new id: referenced, text: referenced # # index.add thing # # try = Picky::Search.new index # # try.search("this").ids.should == ["this that"] # end # end end
Version data entries
19 entries across 19 versions & 1 rubygems