Update .travis.yml

This commit is contained in:
Sdogruyol 2015-12-06 17:55:21 +02:00
parent 692939dfe8
commit aa0d97aa42
3 changed files with 5 additions and 8 deletions

View file

@ -5,5 +5,3 @@ crystal:
matrix:
allow_failures:
- crystal: nightly
os:
- osx

View file

@ -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

View file

@ -1,4 +1,4 @@
# Opening HTTP::Request to add override_method property
class HTTP::Request
property override_method
end
property override_method
end