1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Add test for dashboard.

This commit is contained in:
Brandon Hilkert 2012-12-11 09:49:16 -05:00
parent 412ed9c703
commit 352dbc7bc2
2 changed files with 5 additions and 1 deletions

View file

@ -213,7 +213,6 @@ module Sidekiq
get '/dashboard/update' do
stats = Sidekiq::Stats.new
content_type :json
Sidekiq.dump_json({ processed: stats.processed, failed: stats.failed })
end

View file

@ -195,6 +195,11 @@ class TestWeb < MiniTest::Unit::TestCase
end
end
it 'can display the dashboard' do
get '/dashboard'
assert_equal 200, last_response.status
end
def add_scheduled
score = Time.now.to_f
msg = { 'class' => 'HardWorker',