From 0a00e572ba50390e8d05e7825bfa8974c0959afb Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Sun, 30 Nov 2008 17:17:08 -0500 Subject: [PATCH] Using #received in #assert_received, instead of SpyVerificationProxy.new. --- lib/rr/adapters/test_unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rr/adapters/test_unit.rb b/lib/rr/adapters/test_unit.rb index 8ae2051c..15d3fd4b 100644 --- a/lib/rr/adapters/test_unit.rb +++ b/lib/rr/adapters/test_unit.rb @@ -22,7 +22,7 @@ def teardown_with_rr end def assert_received(subject, &block) - block.call(SpyVerificationProxy.new(subject)).call + block.call(received(subject)).call end end end