Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use cleanup for verifying mock.

  • Loading branch information...
commit 5c6c643da11aca3c001bd72b4836cc560737964c 1 parent 2bff6e2
@kou kou authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/test/unit/rr.rb
View
10 lib/test/unit/rr.rb
@@ -24,9 +24,13 @@ def setup_rr
::RR.reset
end
- teardown :after => :append
- def teardown_rr
- ::RR.verify
+ cleanup :after => :append
+ def cleanup_rr
+ begin
+ ::RR.verify
+ rescue ::RR::Errors::RRError => exception
+ add_failure(exception.message, exception.backtrace)
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.