Contextually is a gem for running Rails controller tests under different user contexts in a convenient way. So you can test your authorization without much effort.
Jonas Nicklas
gem "contextually", "~> 0.0.1"