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

Version Path
picky-3.6.11 spec/functional/regression_spec.rb
picky-3.6.10 spec/functional/regression_spec.rb
picky-3.6.9 spec/functional/regression_spec.rb
picky-3.6.8 spec/functional/regression_spec.rb
picky-3.6.7 spec/specific/regression_spec.rb
picky-3.6.6 spec/specific/regression_spec.rb
picky-3.6.4 spec/specific/regression_spec.rb
picky-3.6.3 spec/specific/regression_spec.rb
picky-3.6.2 spec/specific/regression_spec.rb
picky-3.6.1 spec/specific/regression_spec.rb
picky-3.6.0 spec/specific/regression_spec.rb
picky-3.5.4 spec/specific/regression_spec.rb
picky-3.5.3 spec/specific/regression_spec.rb
picky-3.5.2 spec/specific/regression_spec.rb
picky-3.5.1 spec/specific/regression_spec.rb
picky-3.5.0 spec/specific/regression_spec.rb
picky-3.4.3 spec/specific/regression_spec.rb
picky-3.4.2 spec/specific/regression_spec.rb
picky-3.4.1 spec/specific/regression_spec.rb