mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Extract default app behavior from Kemal::Base to Kemal::Application
This commit is contained in:
		
							parent
							
								
									1cd329b92f
								
							
						
					
					
						commit
						f5c80c7b67
					
				
					 5 changed files with 87 additions and 41 deletions
				
			
		|  | @ -27,11 +27,18 @@ describe "Config" do | |||
|     config.host_binding.should eq "127.0.0.1" | ||||
|   end | ||||
| 
 | ||||
|   it "adds a custom handler" do | ||||
|   it "adds a custom handler to Base" do | ||||
|     application = Kemal::Base.new | ||||
|     application.add_handler CustomTestHandler.new | ||||
|     application.setup | ||||
|     application.handlers.size.should eq(8) | ||||
|     application.handlers.size.should eq 6 | ||||
|   end | ||||
| 
 | ||||
|   it "adds a custom handler to Application" do | ||||
|     application = Kemal::Application.new | ||||
|     application.add_handler CustomTestHandler.new | ||||
|     application.setup | ||||
|     application.handlers.size.should eq 9 | ||||
|   end | ||||
| 
 | ||||
|   it "toggles the shutdown message" do | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue