Skip to content

Commit

Permalink
Fix broken web_api_extention tests
Browse files Browse the repository at this point in the history
The content_type helper method was replaced in sidekiq/sidekiq@ed485e4#diff-05434c79c3a83cc66923dafdd86fc5d4.

Fixed by using the `type` `attr_accessor `
  • Loading branch information
Patrick Roby authored and davydovanton committed May 30, 2017
1 parent 1b423b1 commit 70e02c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/statistic/web_api_extension.rb
Expand Up @@ -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
Expand Down

0 comments on commit 70e02c7

Please sign in to comment.