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

  1. Fork it ( https://github.com/hendrauzia/rspec-authorization/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Setup rails test app (bundle exec rake setup)
  4. Test your changes (bundle exec rake spec)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create a new Pull Request