mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
35b3de8021
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
23 lines
868 B
Ruby
23 lines
868 B
Ruby
require "abstract_unit"
|
|
require "stringio"
|
|
|
|
class ActionController::TestRequestTest < ActionController::TestCase
|
|
|
|
def test_test_request_has_session_options_initialized
|
|
assert @request.session_options
|
|
end
|
|
|
|
ActionDispatch::Session::AbstractStore::DEFAULT_OPTIONS.each_key do |option|
|
|
test "rack default session options #{option} exists in session options and is default" do
|
|
assert_equal(ActionDispatch::Session::AbstractStore::DEFAULT_OPTIONS[option],
|
|
@request.session_options[option],
|
|
"Missing rack session default option #{option} in request.session_options")
|
|
end
|
|
|
|
test "rack default session options #{option} exists in session options" do
|
|
assert(@request.session_options.has_key?(option),
|
|
"Missing rack session option #{option} in request.session_options")
|
|
end
|
|
end
|
|
|
|
end
|