1.My Ruby on Rails application doesn’t have a database.
2.All functionalities even login is done by requesting user through API call.
For example to authenticate user I need the following Api call.
Api::User.verify_password("username", "password")
How do I write RSpec test cases to cover all features?
Two things:
don’t test the api from your app
stub all api calls to focus on your business logic
Example: