diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 3a39138d..b8af0f4b 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -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 diff --git a/test/test_web.rb b/test/test_web.rb index eb30e307..c2e2fbe5 100644 --- a/test/test_web.rb +++ b/test/test_web.rb @@ -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',