Extract Base::Builder and Base::DSL from Kemal::Base

This commit is contained in:
Johannes Müller 2017-07-17 22:11:02 +02:00 committed by sdogruyol
parent f5c80c7b67
commit 29b18c927c
7 changed files with 223 additions and 143 deletions

View file

@ -38,7 +38,7 @@ describe "Config" do
application = Kemal::Application.new
application.add_handler CustomTestHandler.new
application.setup
application.handlers.size.should eq 9
application.handlers.size.should eq 8
end
it "toggles the shutdown message" do

View file

@ -12,7 +12,7 @@ describe "Macros" do
it "adds a custom handler" do
add_handler CustomTestHandler.new
Kemal.application.setup
Kemal.application.handlers.size.should eq 7
Kemal.application.handlers.size.should eq 8
end
end