Rspec::Authorization
RSpec matcher for declarative_authorization. A neat way of asserting declarative_authorization's rules inside controller using RSpec matcher.
Installation
Add this line to your application's Gemfile:
gem 'rspec-authorization'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rspec-authorization
Contributing
- Fork it ( https://github.com/hendrauzia/rspec-authorization/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Setup rails test app (
bundle exec rake setup
) - Test your changes (
bundle exec rake spec
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request