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:
parent
412ed9c703
commit
352dbc7bc2
2 changed files with 5 additions and 1 deletions
|
@ -213,7 +213,6 @@ module Sidekiq
|
||||||
|
|
||||||
get '/dashboard/update' do
|
get '/dashboard/update' do
|
||||||
stats = Sidekiq::Stats.new
|
stats = Sidekiq::Stats.new
|
||||||
|
|
||||||
content_type :json
|
content_type :json
|
||||||
Sidekiq.dump_json({ processed: stats.processed, failed: stats.failed })
|
Sidekiq.dump_json({ processed: stats.processed, failed: stats.failed })
|
||||||
end
|
end
|
||||||
|
|
|
@ -195,6 +195,11 @@ class TestWeb < MiniTest::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'can display the dashboard' do
|
||||||
|
get '/dashboard'
|
||||||
|
assert_equal 200, last_response.status
|
||||||
|
end
|
||||||
|
|
||||||
def add_scheduled
|
def add_scheduled
|
||||||
score = Time.now.to_f
|
score = Time.now.to_f
|
||||||
msg = { 'class' => 'HardWorker',
|
msg = { 'class' => 'HardWorker',
|
||||||
|
|
Loading…
Add table
Reference in a new issue