Skip to content

Commit

Permalink
test for Stats#queues
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 28, 2015
1 parent e5b9f5e commit 216cfc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_api.rb
Expand Up @@ -76,6 +76,10 @@ class TestApi < Sidekiq::Test
end

describe "queues" do
it "returns all queues" do
assert_equal Sidekiq::Stats.new.queues, Sidekiq::Stats::Queues.new.lengths
end

it "is initially empty" do
s = Sidekiq::Stats::Queues.new
assert_equal 0, s.lengths.size
Expand Down

0 comments on commit 216cfc7

Please sign in to comment.