spec/lib/query/combinations/redis_spec.rb in picky-1.5.2 vs spec/lib/query/combinations/redis_spec.rb in picky-1.5.3

- old
+ new

@@ -112,10 +112,15 @@ @combinations.keep([:any]).should == [@combination2, @combination3] end end describe 'generate_intermediate_result_id' do - # TODO + it 'returns the correct result id' do + @combinations.stub! :host => 'some_hostname' + Process.stub! :pid => 12345 + + @combinations.generate_intermediate_result_id.should == :'some_hostname:12345:picky:result' + end end describe "ids" do before(:each) do @combination1 = stub :combination1, :identifier => 'cat1' \ No newline at end of file