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/requests/get_versions_spec.rb
Edward Muller d48db03314 Refactor Terremark into Vcloud
Purpose is to better abstract individual services
2010-05-10 20:37:03 -07:00

28 lines
632 B
Ruby

require 'spec_helper'
describe Fog::Vcloud, :type => :vcloud_request do
subject { @vcloud }
it { should respond_to :get_versions }
describe "#get_versions" do
before { @versions = @vcloud.get_versions }
subject { @versions }
it_should_behave_like "all requests"
its(:body) { should have(1).version }
describe "body.first" do
let(:version) { @versions.body.first }
subject { version }
its(:login_url) { should == @mock_version[:login_url] }
its(:version) { should == @mock_version[:version] }
its(:supported) { should == @mock_version[:supported] }
end
end
end