spec/riveter/query_spec.rb in riveter-0.2.0 vs spec/riveter/query_spec.rb in riveter-0.2.1

- old
+ new

@@ -42,16 +42,16 @@ it "should invoke block" do block = Mock::Block.new() expect(block).to receive(:call).at_least(:once) fake_relation = [1] - allow(fake_relation).to receive(:find_each_with_order) do |*args, &block| - block.call(*args) + allow(fake_relation).to receive(:find_each_with_order) do |*args, &blck| + blck.call(*args) end allow_any_instance_of(TestQuery).to receive(:relation) { fake_relation } query = TestQuery.new(nil) - query.find_each &block + query.find_each(&block) end end describe "#has_data?" do it "should yield true when data available" do