Ruby on Rails - quickly test an ability in ruby on rails- ruby on rails tutorial - rails guides - rails tutorial - ruby rails
If wed like to quickly test if an ability class is giving the correct permissions,we can initialize an ability in the console or on another context with the rails environment loaded, just pass an user instance to test against
For more infomattion about test: https://github.com/ryanb/cancan/wiki/Testing-Abilities