Code fixes reported by static code analysis (#450)

This commit is contained in:
V. Elenhaupt 2018-05-17 11:07:40 +03:00 committed by Serdar Dogruyol
parent f3f7e319ae
commit c2236acf3a
14 changed files with 60 additions and 65 deletions

View file

@ -79,7 +79,7 @@ describe "Handler" do
end
add_handler CustomTestHandler.new
get "/" do |env|
get "/" do
" Great"
end
request = HTTP::Request.new("GET", "/")
@ -89,7 +89,7 @@ describe "Handler" do
end
it "runs specified only_routes in middleware" do
get "/only" do |env|
get "/only" do
"Get"
end
add_handler OnlyHandler.new
@ -99,7 +99,7 @@ describe "Handler" do
end
it "doesn't run specified exclude_routes in middleware" do
get "/" do |env|
get "/" do
"Get"
end
get "/exclude" do