spec/lib/mocks.rb in request-log-analyzer-1.12.3 vs spec/lib/mocks.rb in request-log-analyzer-1.12.4
- old
+ new
@@ -12,13 +12,12 @@
source.stub!(:source_changes=)
source.stub!(:prepare)
source.stub!(:finalize)
- source.stub!(:each_request).and_return do |block|
- block.call(testing_format.request(:field => 'value1'))
- block.call(testing_format.request(:field => 'value2'))
- end
+ source.stub!(:each_request).
+ and_yield(testing_format.request(:field => 'value1')).
+ and_yield(testing_format.request(:field => 'value2'))
return source
end
def mock_io