mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Update .travis.yml
This commit is contained in:
		
							parent
							
								
									692939dfe8
								
							
						
					
					
						commit
						aa0d97aa42
					
				
					 3 changed files with 5 additions and 8 deletions
				
			
		|  | @ -5,5 +5,3 @@ crystal: | ||||||
| matrix: | matrix: | ||||||
|   allow_failures: |   allow_failures: | ||||||
|     - crystal: nightly |     - crystal: nightly | ||||||
| os: |  | ||||||
|   - osx |  | ||||||
|  |  | ||||||
|  | @ -123,7 +123,7 @@ describe "Kemal::Handler" do | ||||||
| 
 | 
 | ||||||
|   it "checks for _method param in POST request to simulate PUT" do |   it "checks for _method param in POST request to simulate PUT" do | ||||||
|     kemal = Kemal::Handler.new |     kemal = Kemal::Handler.new | ||||||
|     kemal.add_route "PUT", "/", do |env| |     kemal.add_route "PUT", "/" do |env| | ||||||
|       "Hello World from PUT" |       "Hello World from PUT" | ||||||
|     end |     end | ||||||
|     request = HTTP::Request.new( |     request = HTTP::Request.new( | ||||||
|  | @ -138,7 +138,7 @@ describe "Kemal::Handler" do | ||||||
| 
 | 
 | ||||||
|   it "checks for _method param in POST request to simulate PATCH" do |   it "checks for _method param in POST request to simulate PATCH" do | ||||||
|     kemal = Kemal::Handler.new |     kemal = Kemal::Handler.new | ||||||
|     kemal.add_route "PATCH", "/", do |env| |     kemal.add_route "PATCH", "/" do |env| | ||||||
|       "Hello World from PATCH" |       "Hello World from PATCH" | ||||||
|     end |     end | ||||||
|     request = HTTP::Request.new( |     request = HTTP::Request.new( | ||||||
|  | @ -153,7 +153,7 @@ describe "Kemal::Handler" do | ||||||
| 
 | 
 | ||||||
|   it "checks for _method param in POST request to simulate DELETE" do |   it "checks for _method param in POST request to simulate DELETE" do | ||||||
|     kemal = Kemal::Handler.new |     kemal = Kemal::Handler.new | ||||||
|     kemal.add_route "DELETE", "/", do |env| |     kemal.add_route "DELETE", "/" do |env| | ||||||
|       "Hello World from DELETE" |       "Hello World from DELETE" | ||||||
|     end |     end | ||||||
|     json_payload = {"_method": "DELETE"} |     json_payload = {"_method": "DELETE"} | ||||||
|  | @ -194,5 +194,4 @@ describe "Kemal::Handler" do | ||||||
|     response.status_code.should eq(301) |     response.status_code.should eq(301) | ||||||
|     response.headers.has_key?("Location").should eq(true) |     response.headers.has_key?("Location").should eq(true) | ||||||
|   end |   end | ||||||
| 
 |  | ||||||
| end | end | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| # Opening HTTP::Request to add override_method property | # Opening HTTP::Request to add override_method property | ||||||
| class HTTP::Request | class HTTP::Request | ||||||
| 	property override_method |   property override_method | ||||||
| end | end | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue