diff options
author | elijah <elijah@riseup.net> | 2013-12-27 12:27:53 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-12-27 12:27:53 -0800 |
commit | 0a56b656f8fbfd38ee1a9babdb93fbed39c4a973 (patch) | |
tree | 6481dada78c575f99a2c976be59e3f99d4c418f9 /tests/white-box/dummy.rb | |
parent | f1ba024e9c529b5f9ac988d6600931f914ec1d31 (diff) |
improve couchdb test
Diffstat (limited to 'tests/white-box/dummy.rb')
-rw-r--r-- | tests/white-box/dummy.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/white-box/dummy.rb b/tests/white-box/dummy.rb index 6ca49754..a3e8ad68 100644 --- a/tests/white-box/dummy.rb +++ b/tests/white-box/dummy.rb @@ -41,6 +41,17 @@ class TestDummy < LeapTest pass end + def test_warn + block_test do + warn "not everything", "is a success or failure" + end + end + + # used to test extracting the proper caller even when in a block + def block_test + yield + end + def test_socket_success fork { Socket.tcp_server_loop('localhost', 12345) do |sock, client_addrinfo| |