You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'spec_helper'describeGrape::APIdosubjectdoapi=Class.new(Grape::API)doformat:jsonresource:tabledogetdo{ping: 'pong'}endendendClass.new(Grape::API)domountapiendenddefappsubjectendit'applies format in the mounted class'doget'/table'expect(last_response.body).toeq({ping: 'pong'}.to_json)endend
See dblock/grape-on-rails@7b6ebee, I had to move format :json to the top level API to get the formatter in something that was mounted.
The text was updated successfully, but these errors were encountered: