Sha256: f308c0d00bcad91f7001d741f30af2f1ab0b685d18022f969350a624fa402620
Contents?: true
Size: 672 Bytes
Versions: 23
Compression:
Stored size: 672 Bytes
Contents
# coding: utf-8 # require 'spec_helper' require 'picky-client/spec' describe 'Integration Tests' do before(:all) do Picky::Indexes.index Picky::Indexes.load end let(:books) { Picky::TestClient.new(BookSearch, :path => '/search/full') } # Testing a count of results. # it { books.search('a s').total.should == 42 } # Testing a specific order of result ids. # it { books.search('alan').ids.should == [449, 259, 307] } # Testing an order of result categories. # it { books.search('alan').should have_categories(['title'], ['author']) } it { books.search('alan p').should have_categories(['title', 'author'], ['author', 'title']) } end
Version data entries
23 entries across 23 versions & 1 rubygems