Very annoying, but simply solved! Reason is that by writing
user.has_all_roles? {...}
you tell ruby: I'm giving a block to this method call... And that's obviously not what you want.
Simple fix: just add parentheses to your method call:
user.has_all_roles?( {...} )