Remove redundant session stuff

This commit is contained in:
Sdogruyol 2016-12-10 19:34:46 +03:00
parent 9696e6c344
commit ac8ec0a07b
4 changed files with 1 additions and 125 deletions

View file

@ -23,14 +23,6 @@ describe "Config" do
config.host_binding.should eq "127.0.0.1"
end
it "sets session values" do
config = Kemal.config
config.session["name"] = "kemal"
config.session["expire_time"] = 1.hours
config.session["name"].as(String).should eq "kemal"
config.session["expire_time"].as(Time::Span).should eq 1.hours
end
it "adds a custom handler" do
config = Kemal.config
config.add_handler CustomTestHandler.new