Skip to content

Commit

Permalink
Merge branch 'master' into 0.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Oct 19, 2015
2 parents 8ded016 + 933ea96 commit bb37870
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/lotus/action/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def self.included(action)
end
end

protected

# Gets the session from the request and expose it as an Hash.
#
# @return [Hash] the HTTP session from the request
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,8 @@ def call(params)
self.headers.merge!('X-Custom' => 'OK')
headers.merge!('Y-Custom' => 'YO')

self.session[:foo] = 'bar'

# PRIVATE
# self.configuration
# self.finish
Expand Down
4 changes: 2 additions & 2 deletions test/session_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
action = SessionAction.new
action.call({'rack.session' => session = { 'user_id' => '23' }})

action.__send__(:session).must_equal(session)
action.session.must_equal(session)
end

it 'returns empty hash when it is missing' do
action = SessionAction.new
action.call({})

action.__send__(:session).must_equal({})
action.session.must_equal({})
end

it 'exposes session' do
Expand Down

0 comments on commit bb37870

Please sign in to comment.