Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/action_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_doesnt_write_session_cookie_if_session_id_is_already_exists

get '/get_session_value'
assert_response :success
assert_equal nil, headers['Set-Cookie'], "should not resend the cookie again if session_id cookie is already exists"
assert_nil headers['Set-Cookie'], "should not resend the cookie again if session_id cookie is already exists"
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/destroy_session_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_destroy_without_renew
s.destroy

renewed_session_model = req.env[record_key]
assert_equal nil, renewed_session_model.data['rails']
assert_nil renewed_session_model.data['rails']
end

def test_destroy_with_renew
Expand Down
3 changes: 2 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ def self.build_app(routes = nil)

def with_test_route_set(options = {})
controller_namespace = self.class.to_s.underscore
actions = %w[set_session_value get_session_value call_reset_session renew get_session_id]

with_routing do |set|
set.draw do
get ':action', :controller => "#{controller_namespace}/test"
actions.each { |action| get action, controller: "#{controller_namespace}/test" }
end

@app = self.class.build_app(set) do |middleware|
Expand Down