From aa0d97aa42898bbae8b86992ebad2f34a94b37f5 Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sun, 6 Dec 2015 17:55:21 +0200 Subject: [PATCH] Update .travis.yml --- .travis.yml | 2 -- spec/kemal_handler_spec.cr | 7 +++---- src/kemal/request.cr | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd4072e..9dfb8c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,3 @@ crystal: matrix: allow_failures: - crystal: nightly -os: - - osx diff --git a/spec/kemal_handler_spec.cr b/spec/kemal_handler_spec.cr index e2a7650..368aa98 100644 --- a/spec/kemal_handler_spec.cr +++ b/spec/kemal_handler_spec.cr @@ -123,7 +123,7 @@ describe "Kemal::Handler" do it "checks for _method param in POST request to simulate PUT" do kemal = Kemal::Handler.new - kemal.add_route "PUT", "/", do |env| + kemal.add_route "PUT", "/" do |env| "Hello World from PUT" end request = HTTP::Request.new( @@ -138,7 +138,7 @@ describe "Kemal::Handler" do it "checks for _method param in POST request to simulate PATCH" do kemal = Kemal::Handler.new - kemal.add_route "PATCH", "/", do |env| + kemal.add_route "PATCH", "/" do |env| "Hello World from PATCH" end request = HTTP::Request.new( @@ -153,7 +153,7 @@ describe "Kemal::Handler" do it "checks for _method param in POST request to simulate DELETE" do kemal = Kemal::Handler.new - kemal.add_route "DELETE", "/", do |env| + kemal.add_route "DELETE", "/" do |env| "Hello World from DELETE" end json_payload = {"_method": "DELETE"} @@ -194,5 +194,4 @@ describe "Kemal::Handler" do response.status_code.should eq(301) response.headers.has_key?("Location").should eq(true) end - end diff --git a/src/kemal/request.cr b/src/kemal/request.cr index 7100f07..9dda339 100644 --- a/src/kemal/request.cr +++ b/src/kemal/request.cr @@ -1,4 +1,4 @@ # Opening HTTP::Request to add override_method property class HTTP::Request - property override_method -end \ No newline at end of file + property override_method +end