Skip to content

Commit

Permalink
added assert_block for newer versions of unit:test
Browse files Browse the repository at this point in the history
  • Loading branch information
lbatizhevskii-ooyala committed Nov 8, 2018
1 parent 9bb0548 commit 2419912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/remote_http_testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,8 @@ def adjust_response_encoding(response)
end
response
end

def assert_block(msg = nil)
assert yield, msg
end
end

0 comments on commit 2419912

Please sign in to comment.