apipie

Apipie receiving integer param as String

纵然是瞬间 提交于 2020-01-25 10:14:17
问题 I have the following RSpec test: it 'should not list alerts, since I do not have access to this model' do get :index, params: { model_id: @model2.id, workspace_id: @workspace.id }, as: :json expect(response).to have_http_status(:forbidden) end and it is failing because Apipie is complaining the workspace_id is a String when it is actually not, it is an Integer. I debugged the call, inspected @workspace and id is definitely an Integer. I'm seeing this issue now that I'm migrating the