summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-02-05 12:56:31 +0000
committerSteve Kemp <steve@steve.org.uk>2015-02-05 12:56:31 +0000
commit9ba42540854697fbba2a17e97b8e3cb5dde08012 (patch)
treecc2ed8a8753575ac5c50ecd0c0d09053f015f3c4
parent51cde2fbb6c21721469f8641b0f54a2b43555d96 (diff)
Test that "flush!" is defined as a method.
-rwxr-xr-xt/test-custodian-queue.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/test-custodian-queue.rb b/t/test-custodian-queue.rb
index 7e5d0d9..0170ef1 100755
--- a/t/test-custodian-queue.rb
+++ b/t/test-custodian-queue.rb
@@ -55,10 +55,11 @@ class TestCustodianQueue < Test::Unit::TestCase
#
# here we're testing we've got a derived class that has
- # implemented "def size?"
+ # implemented the methods "size?" & "flush!"
#
assert_nothing_raised do
q.size?
+ q.flush!
end
end
@@ -72,10 +73,11 @@ class TestCustodianQueue < Test::Unit::TestCase
#
# here we're testing we've got a derived class that has
- # implemented "def size?"
+ # implemented the methods "size?" & "flush!"
#
assert_nothing_raised do
q.size?
+ q.flush!
end