Refactor dsl_helper_spec

This commit is contained in:
Johannes Müller 2017-07-20 15:24:09 +02:00 committed by sdogruyol
parent 5d65bcb3b9
commit 34022273b2
2 changed files with 47 additions and 12 deletions

View file

@ -17,18 +17,6 @@ describe "Macros" do
end
end
describe "#logging" do
it "sets logging status" do
logging false
Kemal.config.logging?.should be_false
end
it "sets a custom logger" do
logger CustomLogHandler.new
Kemal.application.logger.should be_a(CustomLogHandler)
end
end
describe "#halt" do
it "can break block with halt macro" do
app = Kemal::Base.new