test/spy/test_subroutine.rb in spy-1.0.0 vs test/spy/test_subroutine.rb in spy-1.0.1

- old
+ new

@@ -155,10 +155,10 @@ assert pen_write_spy.has_been_called_with?("hello") @pen.write("hello world") assert pen_write_spy.has_been_called_with?("hello") end - def test_spy_hook_records_number_of_calls + def test_spy_hook_records_number_of_calls2 args = ["hello world"] block = Proc.new {} pen_write_spy = spy_on(@pen, :write) called_from = "#{__FILE__}:#{__LINE__ + 1}:in `#{__method__}'" @pen.write(*args, &block)