Now that I have CanCan and Devise working nicely I need to add to my tests. Should I expect to end up with double the number of tests, maybe more?I need to test everything as a\"guest\" user then tes
Consider this as a challenge rather than its general approach.The reason I mention this is because, it is generally preferred to incorporate admin-accessible features into the public facing site.This
I have a Groups Controller with a method def inbox. If the user is a group member then inbox returns a JSON object.
I\'m looking to do pagination with cancan however it\'s not obvious how to integrate this with gems such as will_paginate.
If I have a Devise model User, of which only those users with role :admin are allowed to view a certain url, how can I write an RSpec integration test to check that the status returns 200 for that url
I\'m setting up some tests for a rails 3 app using Devise for authentication, CanCan for access control and Cucumber for integration testing. At the moment I\'m working on the following test to check
How do I grant permission to edit/ destroy links on a by-user basis in the user index of rails? I\'m using Rails3, Devise and CanCan to define role based abilities.
I\'ve created a sets of specs for a controller that I have (Photo) that is a nested resource of a User.
In my app I have the following models: Users Groups Permissions (user_id, group_id, role_id) Where role_id 1: admin, 2: member
I\'m using devise/cancan for my app and everything is pretty sound -- provided a user creates an account and sig开发者_如何学JAVAns in.