Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added instructions for testing with RSpec

  • Loading branch information...
commit 528cb9d4ec7211445a0be660be39afe6296a2a6c 1 parent c1a2f93
@dbloete dbloete authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
6 README.rdoc
@@ -332,6 +332,12 @@ In your test_helper.rb, to enable the helpers add
+For using the test helpers with RSpec, just add the following lines to your
+spec_helper.rb (somewhere after require 'spec/rails'):
+ require 'declarative_authorization/maintenance'
+ include Authorization::TestHelper
Now, in unit tests, you may deactivate authorization if needed e.g. for test
setup and assume certain identities for tests:
Please sign in to comment.
Something went wrong with that request. Please try again.