spec/lib/query/boosts_spec.rb in picky-4.19.4 vs spec/lib/query/boosts_spec.rb in picky-4.19.5
- old
+ new
@@ -20,11 +20,11 @@
end
describe 'boost_for' do
it 'gets the category names from the combinations' do
combinations = [
- stub(:combination1, :category_name => :test1),
- stub(:combination1, :category_name => :test2)
+ double(:combination1, :category_name => :test1),
+ double(:combination1, :category_name => :test2)
]
boosts.boost_for(combinations).should == +6
end
end
\ No newline at end of file