Closed hafeez84 closed 5 years ago
Posts API POST /api/posts when the request is valid creates a post Failure/Error: render json: post, status: status
NoMethodError: undefined method `to_i' for {:status=>201}:Hash Did you mean? to_s to_a to_h
I tried it with several changes. since it says it's an hash i did expect(response.status).to have_http_status(201) but still didnt work.
Posts API POST /api/posts when the request is valid creates a post Failure/Error: render json: post, status: status
I tried it with several changes. since it says it's an hash i did expect(response.status).to have_http_status(201) but still didnt work.