mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Updated logger to be more robust
This commit is contained in:
parent
639d4a7a48
commit
28d4d5167b
6 changed files with 39 additions and 16 deletions
|
@ -12,6 +12,17 @@ describe "Config" do
|
|||
config.port.should eq 3000
|
||||
end
|
||||
|
||||
it "sets default environment to development" do
|
||||
config = Kemal.config
|
||||
config.env.should eq "development"
|
||||
end
|
||||
|
||||
it "set environment to production" do
|
||||
config = Kemal.config
|
||||
config.env = "production"
|
||||
config.env.should eq "production"
|
||||
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