Skip to content

Commit

Permalink
Fix test for middleware
Browse files Browse the repository at this point in the history
We should pass a binding or bindings to the Session.new()
  • Loading branch information
sh19910711 committed May 25, 2016
1 parent 5db98f3 commit c7e31ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/web_console/middleware_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c7e31ce

Please sign in to comment.