2010-11-16 14:05:23 -05:00
|
|
|
require File.dirname(__FILE__) + '/spec_helper'
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
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") }
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
it { should be_an_instance_of Fog::Vcloud::Mock }
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
it { should respond_to :default_organization_uri }
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
it { should respond_to :supported_versions }
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
it { should have_at_least(1).supported_versions }
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-10-17 19:06:44 -04:00
|
|
|
its(:default_organization_uri) { should == @mock_organization.href }
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
end
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|