spec/helpers/request_helper.rb in hassox-warden-0.3.0 vs spec/helpers/request_helper.rb in hassox-warden-0.3.1
- old
+ new
@@ -11,10 +11,10 @@
end
def setup_rack(app = nil, opts = {}, &block)
app ||= block if block_given?
# opts[:default_strategies] ||= [:password]
- # opts[:failure_app] ||= failure_app
+ opts[:failure_app] ||= Warden::Spec::Helpers::FAILURE_APP
Rack::Builder.new do
use Warden::Spec::Helpers::Session
use Warden::Manager, opts do |manager|
manager.failure_app = Warden::Spec::Helpers::FAILURE_APP
manager.default_strategies :password
\ No newline at end of file