I’ve created a simple application to assist me in learning Rails.
Because I like a challenge, I’ve also started to build, inside this application, a Sinatra app (to handle API calls without the overhead of the full Rails stack).
I’ve come to the point where I want to start testing both applications before I move any further, but I’m not sure where to write the tests for my Sinatra app. It’s presently located under lib/api – should I create a tests folder underneath that, or use the main Rails test folder at the root?
You can test this sinatra app in request of rspec by example or by integration test.
In this part you just need define which url you want request and see the result.