This commit is contained in:
sdogruyol 2016-01-03 16:04:11 +02:00
parent c21567fe17
commit 7ad319c70d
5 changed files with 15 additions and 6 deletions

View file

@ -17,12 +17,18 @@ describe "Config" do
config.env.should eq "development"
end
it "set environment to production" do
it "sets environment to production" do
config = Kemal.config
config.env = "production"
config.env.should eq "production"
end
it "sets host binding" do
config = Kemal.config
config.host_binding = "127.0.0.1"
config.host_binding.should eq "127.0.0.1"
end
it "adds a custom handler" do
config = Kemal.config
config.add_handler CustomTestHandler.new