crystal tool format

This commit is contained in:
Johannes Müller 2017-10-18 17:57:49 +02:00 committed by sdogruyol
parent 6d12d111f4
commit e6dc494f7e
3 changed files with 4 additions and 3 deletions

View file

@ -65,8 +65,8 @@ describe "Kemal::WebSocketHandler" do
it "matches correct verb" do it "matches correct verb" do
app = Kemal::Base.new app = Kemal::Base.new
handler = app.websocket_handler handler = app.websocket_handler
handler.next = app.route_handler handler.next = app.route_handler
app.ws "/" { } app.ws "/" { }
app.get "/" { "get" } app.get "/" { "get" }
request = HTTP::Request.new("GET", "/") request = HTTP::Request.new("GET", "/")

View file

@ -68,7 +68,7 @@ class Kemal::Base
end end
def self.run(port : Int32? = nil) def self.run(port : Int32? = nil)
run(port) { } run(port) { }
end end
# DEPRECATED: This method should be replaced with `#running?` # DEPRECATED: This method should be replaced with `#running?`

View file

@ -1,5 +1,6 @@
module Kemal::FileHelpers module Kemal::FileHelpers
extend self extend self
# Send a file with given path and base the mime-type on the file extension # Send a file with given path and base the mime-type on the file extension
# or default `application/octet-stream` mime_type. # or default `application/octet-stream` mime_type.
# #