spec/lib/query/allocation_spec.rb in picky-4.12.1 vs spec/lib/query/allocation_spec.rb in picky-4.12.2

- old
+ new

@@ -8,11 +8,11 @@ @combinations = stub :combinations, :empty? => false @allocation = described_class.new @index, @combinations end # describe "hash" do - # it "delegates to the combinations" do + # it "forwards to the combinations" do # @combinations.should_receive(:hash).once.with # # @allocation.hash # end # end @@ -32,11 +32,11 @@ end end end describe 'remove' do - it 'should delegate to the combinations' do + it 'should forward to the combinations' do @combinations.should_receive(:remove).once.with [:some_categories] @allocation.remove [:some_categories] end end @@ -203,10 +203,10 @@ end end describe "calculate_score" do context 'non-empty combinations' do - it 'should delegate to backend and combinations' do + it 'should forward to backend and combinations' do @backend.should_receive(:weight).once.with(@combinations).and_return 1 @combinations.should_receive(:boost_for).once.with(:some_boosts).and_return 2 @allocation.calculate_score(:some_boosts).should == 3 end \ No newline at end of file