1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/compute/requests/vsphere/current_time_tests.rb
Jeff McCune 00fbdaa932 (#9241) Add test skeleton framework
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.
2011-09-10 13:32:58 -07:00

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