Skip to content
Browse files

Added test for testing queues size after /queues call

  • Loading branch information...
1 parent e947afa commit 2e8fd279cefc9beb1521e1ab793a361c1488aa8a Alexander Kolesen committed
Showing with 19 additions and 0 deletions.
  1. +19 −0 test/test_iron_mq.rb
View
19 test/test_iron_mq.rb
@@ -108,6 +108,25 @@ def test_basics
end
+
+ def test_queues_list
+ queue_name = 'test_queues_list'
+ @client.queue_name = queue_name
+ clear_queue
+
+ res = @client.messages.post("hello world!")
+ p res
+
+ res = @client.queues.list
+ res.each do |q|
+ puts "#{q.name} and #{queue_name}";
+ if q.name == queue_name
+ assert_equal q.size, 1
+ end
+ end
+ end
+
+
# TODO: pass :timeout in post/get messages and test those
def test_timeout
@client.queue_name = "test_timeout_6"

0 comments on commit 2e8fd27

Please sign in to comment.
Something went wrong with that request. Please try again.