From 1b706197659443ca7cbfb3234f987794509d617c Mon Sep 17 00:00:00 2001 From: Leonid Batizhevskii Date: Thu, 8 Nov 2018 12:02:53 +0400 Subject: [PATCH] added assert_block for newer versions of unit:test --- lib/remote_http_testing.rb | 4 ++++ lib/remote_http_testing/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/remote_http_testing.rb b/lib/remote_http_testing.rb index 4092d43..c75f0c0 100644 --- a/lib/remote_http_testing.rb +++ b/lib/remote_http_testing.rb @@ -143,4 +143,8 @@ def adjust_response_encoding(response) end response end + + def assert_block(msg = nil) + assert yield, msg + end end diff --git a/lib/remote_http_testing/version.rb b/lib/remote_http_testing/version.rb index 7902c1a..02a441c 100644 --- a/lib/remote_http_testing/version.rb +++ b/lib/remote_http_testing/version.rb @@ -1,3 +1,3 @@ module RemoteHttpTesting - VERSION = "0.1.4" + VERSION = "0.1.5" end