Sha256: 8d15bba1152c17453f953f2e328af66d82c4210a81be364b0a9d46b463aa7c57
Contents?: true
Size: 634 Bytes
Versions: 7
Compression:
Stored size: 634 Bytes
Contents
require 'spec_helper' describe Query::Live do before(:each) do @indexed = stub :indexed @index = stub :index, :indexed => @indexed end describe 'result_type' do before(:each) do @query = Query::Live.new @index end it "should return a specific type" do @query.result_type.should == Results::Live end end describe "execute" do before(:each) do @query = Query::Live.new @index end it "should get allocations" do @query.result_type.should_receive :from @query.should_receive(:sorted_allocations).once @query.execute 'some_query', 0 end end end
Version data entries
7 entries across 7 versions & 1 rubygems