spec/lib/query/combination_spec.rb in picky-2.0.0 vs spec/lib/query/combination_spec.rb in picky-2.1.0
- old
+ new
@@ -62,11 +62,11 @@
end
end
describe 'ids' do
it 'should call ids with the text on bundle' do
- @bundle.should_receive(:ids).once.with 'some_text'
+ @bundle.should_receive(:ids).once.with :some_text
@combination.ids
end
it 'should not call it twice, but cache' do
@bundle.stub! :ids => :some_ids
@@ -78,10 +78,10 @@
end
end
describe 'weight' do
it 'should call weight with the text on bundle' do
- @bundle.should_receive(:weight).once.with 'some_text'
+ @bundle.should_receive(:weight).once.with :some_text
@combination.weight
end
it 'should not call it twice, but cache' do
@bundle.stub! :weight => :some_weight
\ No newline at end of file