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

29 lines
632 B
Ruby
Raw Normal View History

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