mirror of
				https://github.com/rest-client/rest-client.git
				synced 2022-11-09 13:49:40 -05:00 
			
		
		
		
	Add integration test for the default cert store.
This commit is contained in:
		
							parent
							
								
									706c272757
								
							
						
					
					
						commit
						e06d044d42
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -55,5 +55,14 @@ describe RestClient::Request do
 | 
			
		|||
      )
 | 
			
		||||
      expect { request.execute }.to raise_error(RestClient::SSLCertificateNotVerified)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    it "is successful using the default system cert store" do
 | 
			
		||||
      request = RestClient::Request.new(
 | 
			
		||||
        :method => :get,
 | 
			
		||||
        :url => 'https://www.mozilla.org',
 | 
			
		||||
        :verify_ssl => true,
 | 
			
		||||
      )
 | 
			
		||||
      expect {request.execute }.to_not raise_error
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue