I have a thorough ability.rb
defined that's working properly. However, when I write a controller spec that sends a request to an endpoint, cancan(can) repeatedly returns a 403.
In my ability.rb
in the respective section for handling the endpoint I'm testing, when outputting {Model}.all.to_json
it's outputting an empty array.
How can I fix this so that it recognizes the data in my test database, or change my test to bypass this?