james2m / canard

Makes role based authorization in Rails really simple. Wraps CanCan and RoleModel up with a smattering of syntactic sugar, some generators and scopes.
MIT License
125 stars 28 forks source link

Fix tests for ruby > 2 #16

Closed ninetwentyfour closed 10 years ago

ninetwentyfour commented 10 years ago

When working on https://github.com/james2m/canard/pull/15 with ruby 2.1 I noticed this failing test. It seems this failure started happening with ruby 2.0

This fixes the test, though I'm not super sure why the change is necessary. I looked around online to see if anyone else had this problem and didn't find anything.

james2m commented 10 years ago

Thanks @ninetwentyfour I'll have a look through this and merge in the near future.