New option to set application name (#606)

This commit is contained in:
Aravinda Vishwanathapura 2021-04-05 20:35:06 +05:30 committed by GitHub
parent 3fee068636
commit de5e022222
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View file

@ -58,4 +58,11 @@ describe "Config" do
it "gets the version from shards.yml" do
Kemal::VERSION.should_not be("")
end
it "sets application name" do
config = Kemal.config
config.app_name.should eq "Kemal"
config.app_name = "testapp"
config.app_name.should eq "testapp"
end
end