Skip to content

Commit 2419912

Browse files
added assert_block for newer versions of unit:test
1 parent 9bb0548 commit 2419912

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/remote_http_testing.rb

+4
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,8 @@ def adjust_response_encoding(response)
143143
end
144144
response
145145
end
146+
147+
def assert_block(msg = nil)
148+
assert yield, msg
149+
end
146150
end

0 commit comments

Comments
 (0)