1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/vcloud/vcloud_spec.rb
Dan Peterson c29a72ccd1 Rework vCloud mocking to use mock objects instead of a Hash.
Make some mock behavior reflect reality at Terremark.

Add mocks for Terremark configure_vapp and delete_vapp.
2010-11-05 08:56:50 +08:00

18 lines
535 B
Ruby

require 'spec/vcloud/spec_helper.rb'
if Fog.mocking?
describe Fog::Vcloud, :type => :mock_vcloud_request do
subject { Fog::Vcloud.new(:username => "foo", :password => "bar", :versions_uri => "https://fakey.com/api/versions") }
it { should be_an_instance_of Fog::Vcloud::Mock }
it { should respond_to :default_organization_uri }
it { should respond_to :supported_versions }
it { should have_at_least(1).supported_versions }
its(:default_organization_uri) { should == @mock_organization.href }
end
end