spec/lib/api/search/boost_spec.rb in picky-4.19.4 vs spec/lib/api/search/boost_spec.rb in picky-4.19.5
- old
+ new
@@ -8,10 +8,10 @@
end
context 'boost_for' do
context 'with a Hash' do
it 'returns a boosts object' do
combinations = [
- stub(:combination, :category_name => :bla)
+ double(:combination, :category_name => :bla)
]
object.extract_boosts([:bla] => +7.77).boost_for(combinations).should == 7.77
end
end
\ No newline at end of file