mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
d48db03314
Purpose is to better abstract individual services
28 lines
632 B
Ruby
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
|