encoding: utf-8
VERSION | = | "1.0.3".freeze |
Provides helper methods to warden for testing.
To setup warden in test mode call the +test_mode!+ method on warden
@example
Warden.test_mode!
This will provide a number of methods. Warden.on_next_request(&blk) - captures a block which is yielded the warden proxy on the next request Warden.test_reset! - removes any captured blocks that would have been executed on the next request
Warden.test_reset! should be called in after blocks for rspec, or teardown methods for Test::Unit