Browse files

adding test case for :all inside role def

  • Loading branch information...
1 parent 8897fd9 commit e3ba4d2b3e981579b06dad548833c6003cb9ae10 @matthewvermaak committed Oct 9, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/unit/sanction_test.rb
View
2 test/unit/sanction_test.rb
@@ -15,6 +15,8 @@ def setup
config.role :writer, Person => Magazine, :having => [:can_write], :includes => [:reader]
config.role :owner, Person => Magazine, :includes => [:editor, :writer]
+ config.role :tester, Person => :all
+
config.role :super_user, Person => :global, :having => :anything
config.role :admin, Person => :global
end

0 comments on commit e3ba4d2

Please sign in to comment.