Skip to content

Commit

Permalink
Cleanup for #128
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Oct 19, 2015
1 parent 9400b65 commit 933ea96
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/lotus/action/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def self.included(action)
# end
# end
def session
@_env ||= {}
@_env[SESSION_KEY] ||= {}
end

Expand Down
1 change: 1 addition & 0 deletions test/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ def call(params)
# PROTECTED
self.response
self.cookies
self.session

response
cookies
Expand Down
7 changes: 1 addition & 6 deletions test/session_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@
action = SessionAction.new
action.call({'rack.session' => session = { 'foo' => 'bar' }})

action.session.must_equal(session)
end

it 'has a default of Hash' do
action = SessionAction.new
action.session.must_equal({})
action.exposures[:session].must_equal(session)
end
end
end

0 comments on commit 933ea96

Please sign in to comment.