I am currently working on an API that allows client to create new records. If a JSON request however contains an invalid JSON response an exception is called an a 500, internal server error is returned to the client.
read moreI am currently working on an API that allows client to create new records. If a JSON request however contains an invalid JSON response an exception is called an a 500, internal server error is returned to the client.
read moreToday I was confronted with testing my API in Cucumber (I should actually write a post on it). The scenario I was testing was involving deleting a resource that does not belong to this user. As the resource it is not found it raises a ActiveRecord::RecordNotFound error, what is actually ok. The API client should actually not see the error, but have a 404 returned. I’ve implemented a custom error handling using an error controller and use the routing middlewhere as the “exceptions_app”. More on this can be found here.
read moreAs I am currently working on an application that triggers an event when clicking on a map I needed to implement a test for that.
read moreRGeo by default renders spatial columns in WKT. To switch it to GeoJSON, set this in an initializer:
read moreIf you are running a cucumber scenario and it fails most of the time you need to inspect what’s wrong and you want to look at the page why it does not work as expected.
read more