mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
v0.6.0
This commit is contained in:
parent
c21567fe17
commit
7ad319c70d
5 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue