From 70e02c75438b15157b5b79364876741ffdcac5c8 Mon Sep 17 00:00:00 2001 From: Patrick Roby Date: Tue, 30 May 2017 11:47:09 -0700 Subject: [PATCH] Fix broken web_api_extention tests The content_type helper method was replaced in https://github.com/mperham/sidekiq/commit/ed485e47e47aa52583470fb4313e8a88c51d5f15#diff-05434c79c3a83cc66923dafdd86fc5d4. Fixed by using the `type` `attr_accessor ` --- lib/sidekiq/statistic/web_api_extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/statistic/web_api_extension.rb b/lib/sidekiq/statistic/web_api_extension.rb index c3be1d8..81d09c9 100644 --- a/lib/sidekiq/statistic/web_api_extension.rb +++ b/lib/sidekiq/statistic/web_api_extension.rb @@ -7,7 +7,7 @@ def self.registered(app) app.helpers WebExtensionHelper app.before '/api/*' do - content_type :json + type = :json end app.get '/api/statistic.json' do