Refactor spec helper classes locations and visibility

This commit is contained in:
Johannes Müller 2017-07-20 15:23:32 +02:00 committed by sdogruyol
parent ad91a22789
commit 5d65bcb3b9
5 changed files with 35 additions and 28 deletions

View file

@ -1,13 +1,13 @@
require "./spec_helper"
describe "Macros" do
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
private class CustomTestHandler < Kemal::Handler
def call(env)
env.response << "Kemal"
call_next env
end
end
describe "Macros" do
describe "#add_handler" do
it "adds a custom handler" do
app = Kemal::Application.new