spec/lib/query/indexes_spec.rb in picky-4.5.3 vs spec/lib/query/indexes_spec.rb in picky-4.5.4
- old
+ new
@@ -89,17 +89,17 @@
before(:each) do
@allocations = stub :allocations
indexes.stub! :allocations_for => @allocations
end
it 'calls the right method in order' do
- @allocations.should_receive(:uniq).once.ordered.with()
+ # @allocations.should_receive(:uniq!).once.ordered.with()
@allocations.should_receive(:calculate_score).once.ordered.with(:some_weights)
@allocations.should_receive(:sort!).once.ordered.with()
indexes.prepared_allocations_for :some_tokens, :some_weights
end
it 'calls the right method in order' do
- @allocations.should_receive(:uniq).once.ordered.with()
+ # @allocations.should_receive(:uniq!).once.ordered.with()
@allocations.should_receive(:calculate_score).once.ordered.with({})
@allocations.should_receive(:sort!).once.ordered.with()
indexes.prepared_allocations_for :some_tokens
end
\ No newline at end of file