Sha256: 6e954134f4acb69474a6892eee78f16b3005e01fac34ce3596e2272bca8fc464
Contents?: true
Size: 734 Bytes
Versions: 7
Compression:
Stored size: 734 Bytes
Contents
# encoding: utf-8 # require 'spec_helper' require 'ostruct' describe "Hint: no_dump" do ComicBook = Struct.new(:id, :title, :author) let(:index) do Picky::Index.new :no_dump do optimize :no_dump category :title category :author end end let(:try) { Picky::Search.new index } it 'can index and search' do index.replace ComicBook.new(2, "Title", "Author") try.search("title:title").ids.should == [2] end context 'dumping and loading' do it "raises" do index.replace ComicBook.new(2, "Title New", "Author New") expect { index.dump index.load index.build_realtime_mapping }.to raise_error # TODO Clarify error. end end end
Version data entries
7 entries across 7 versions & 1 rubygems