Fix the ability spec

* Get rid of the volunteer coordinator role, we don't use it currently
* Test the ability with users that exclusively have a single role
This commit is contained in:
Henne Vogelsang 2015-03-13 00:43:09 +01:00
parent e8ab94e1c7
commit 0ce4aa0a49
3 changed files with 13 additions and 82 deletions

View file

@ -122,7 +122,7 @@ class Ability
# can view others
can :show, User
# can register
can [:show, :create], Registration do |registration|
can [:read, :create], Registration do |registration|
registration.new_record?
end
end