Add have_cacheable_headers matcher for responses (#31727)
		
	This commit is contained in:
		
					parent
					
						
							
								490bdb7944
							
						
					
				
			
			
				commit
				
					
						e1fa456c7c
					
				
			
		
					 11 changed files with 96 additions and 65 deletions
				
			
		|  | @ -9,6 +9,7 @@ describe 'Manifest' do | |||
|     it 'returns http success' do | ||||
|       expect(response) | ||||
|         .to have_http_status(200) | ||||
|         .and have_cacheable_headers | ||||
|         .and have_attributes( | ||||
|           content_type: match('application/json') | ||||
|         ) | ||||
|  | @ -18,7 +19,5 @@ describe 'Manifest' do | |||
|           name: 'Mastodon' | ||||
|         ) | ||||
|     end | ||||
| 
 | ||||
|     it_behaves_like 'cacheable response' | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue