From c7e31ce65472ec386da167aeec6701121ba7e42e Mon Sep 17 00:00:00 2001 From: Hiroyuki Sano Date: Wed, 25 May 2016 14:18:30 +0900 Subject: [PATCH] Fix test for middleware We should pass a binding or bindings to the Session.new() --- test/web_console/middleware_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/web_console/middleware_test.rb b/test/web_console/middleware_test.rb index c1f36222..c97c4e2d 100644 --- a/test/web_console/middleware_test.rb +++ b/test/web_console/middleware_test.rb @@ -133,7 +133,7 @@ def body end test 'can switch bindings on error pages' do - session = Session.new(exception = raise_exception) + session = Session.new(raise_exception.bindings) Session.stubs(:from).returns(session)