Skip to content

Commit

Permalink
Solve some warnings and a failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 3, 2010
1 parent 74dd8a3 commit 653acac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions actionpack/lib/action_controller/test_case.rb
Expand Up @@ -191,6 +191,7 @@ class TestSession < Rack::Session::Abstract::SessionHash #:nodoc:
DEFAULT_OPTIONS = Rack::Session::Abstract::ID::DEFAULT_OPTIONS

def initialize(session = {})
@env, @by = nil, nil
replace(session.stringify_keys)
@loaded = true
end
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/request.rb
Expand Up @@ -199,7 +199,7 @@ def body_stream #:nodoc:
# TODO This should be broken apart into AD::Request::Session and probably
# be included by the session middleware.
def reset_session
session.destroy if session
session.destroy if session && session.respond_to?(:destroy)
self.session = {}
@env['action_dispatch.request.flash_hash'] = nil
end
Expand Down

0 comments on commit 653acac

Please sign in to comment.