spec/lib/indexes_indexed_spec.rb in picky-4.19.4 vs spec/lib/indexes_indexed_spec.rb in picky-4.19.5

- old
+ new

@@ -13,12 +13,12 @@ end describe 'methods' do let(:indexes) { described_class.new } before(:each) do - @index1 = stub :index1, :name => :index1 - @index2 = stub :index2, :name => :index2 + @index1 = double :index1, :name => :index1 + @index2 = double :index2, :name => :index2 indexes.register @index1 indexes.register @index2 end describe '[]' do it 'should use the mapping' do @@ -48,11 +48,11 @@ indexes.index_mapping.should == {} end end describe 'load' do it 'calls load on each in order' do - @index1.should_receive(:load).once.with.ordered - @index2.should_receive(:load).once.with.ordered + @index1.should_receive(:load).once.with(no_args).ordered + @index2.should_receive(:load).once.with(no_args).ordered indexes.load end end end \ No newline at end of file