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 application to Rails 5.2.0 (previously Rails 4).
Has anyone seen something like this?