diff options
Diffstat (limited to 't/test-custodian-queue.rb')
-rwxr-xr-x | t/test-custodian-queue.rb | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/t/test-custodian-queue.rb b/t/test-custodian-queue.rb index bcd615c..d9145c8 100755 --- a/t/test-custodian-queue.rb +++ b/t/test-custodian-queue.rb @@ -31,26 +31,13 @@ class TestCustodianQueue < Test::Unit::TestCase end - - # - # Test that creating an unknown type throws an exception. + # Test we can create and use a Redis queue. # - def test_unknown - - # creation will fail - assert_raise RuntimeError do - t = Custodian::QueueType.create('foo') - end - - end - - - def test_redis q = nil assert_nothing_raised do - q = Custodian::QueueType.create('redis') + q = Custodian::RedisQueueType.new() end # @@ -65,22 +52,4 @@ class TestCustodianQueue < Test::Unit::TestCase end - def test_beanstalkd - q = nil - assert_nothing_raised do - q = Custodian::QueueType.create('redis') - end - - # - # here we're testing we've got a derived class that has - # implemented the methods "size?" & "flush!" - # - assert_nothing_raised do - q.size? - q.flush! - end - - - end - end |