Sha256: f9bf0a8c4f3b0a45d6271cbccb1966e04b55e7494c0ae95031d741a37d68764c
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
require 'spec_helper' describe Hydra::BatchEdit::SearchService do before do @session = {:history => [17, 14, 12, 9]} @service = Hydra::BatchEdit::SearchService.new(@session, 'vanessa') end it "should get the documents for the first history entry" do Search.should_receive(:find).with(17).and_return(Search.new(:query_params=>{:q=>"World Peace"})) @service.should_receive(:get_search_results).and_return([:one, [:doc1, :doc2]]) @service.last_search_documents.should == [:doc1, :doc2] end end
Version data entries
5 entries across 5 versions & 1 rubygems