I'm new to rpsec w Rails 3.... I just added CanCan for permissions in my Rails 3 app. I want to add test cases w rspec but I'm not 100% sure where they should live.
If I want to write tests to check the permissions. Should these be in the controller? The model? Some where else?
Something like:
@user1 = belongs to @group
@user2 does not
@user1.should be_able_to(:destroy, @group.new(:user => user))
@user2. should_not be_able_to(:destroy, @group.new(:user => user))
Thanks