mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	Without this patch the change set currently has no framework for testing the Vsphere provider. This patch doesn't actually test anything, but does add the skeleton code to being testing mocked versions of other code. Particularly, we're going to take the approach of completely mocking the @connection instance variable of the Compute instance. This will allow us to set expectations and return things from the underlying vmware API library.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			228 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			228 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
Shindo.tests('Fog::Compute[:vsphere] | current_time request', ['vsphere']) do
 | 
						|
 | 
						|
  compute = Fog::Compute[:vsphere]
 | 
						|
 | 
						|
  tests('is a Time object').succeeds do
 | 
						|
    pending if Fog.mock?
 | 
						|
    compute.current_time.is_a?(Time)
 | 
						|
  end
 | 
						|
 | 
						|
end
 |