Skip to content

Commit

Permalink
Added instructions for testing with RSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
dbloete committed Oct 10, 2010
1 parent c1a2f93 commit 528cb9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rdoc
Expand Up @@ -332,6 +332,12 @@ In your test_helper.rb, to enable the helpers add
...
end

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:

Expand Down

0 comments on commit 528cb9d

Please sign in to comment.