mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
18 lines
395 B
Crystal
18 lines
395 B
Crystal
|
require "./spec_helper"
|
||
|
|
||
|
describe "Macros" do
|
||
|
describe "#basic_auth" do
|
||
|
it "adds HTTPBasicAuthHandler" do
|
||
|
basic_auth "serdar", "123"
|
||
|
Kemal.config.handlers.size.should eq 1
|
||
|
end
|
||
|
end
|
||
|
|
||
|
describe "#public_folder" do
|
||
|
it "sets public folder" do
|
||
|
public_folder "/some/path/to/folder"
|
||
|
Kemal.config.public_folder.should eq("/some/path/to/folder")
|
||
|
end
|
||
|
end
|
||
|
end
|