spec/vcloud/terremark/vcloud/requests/get_vdc_spec.rb in fog-0.1.4 vs spec/vcloud/terremark/vcloud/requests/get_vdc_spec.rb in fog-0.1.5

- old
+ new

@@ -5,11 +5,11 @@ it { should respond_to :get_vdc } describe :get_vdc do context "with a valid vdc uri" do - before { @vdc = @vcloud.get_vdc(@mock_vdc[:href]) } + before { @vdc = @vcloud.get_vdc(URI.parse(@mock_vdc[:href])) } subject { @vdc } it_should_behave_like "all requests" its(:headers) { should include "Content-Type" } @@ -25,11 +25,11 @@ it_should_behave_like "it has a vcloud v0.8 xmlns" it_should_behave_like "a tmrk vdc" its(:name) { should == @mock_vdc[:name] } - its(:href) { should == @mock_vdc[:href] } + its(:href) { should == URI.parse(@mock_vdc[:href]) } describe "#links" do subject { @vdc.body.links } it { should have(3).links } @@ -41,18 +41,18 @@ describe "#link[1]" do subject { @vdc.body.links[1] } it_should_behave_like "all rel=down vcloud links" it_should_behave_like "all vcloud application/xml types" - specify { subject.href.should == @mock_vdc[:href] + "/publicIps" } + specify { subject.href.should == URI.parse(@mock_vdc[:href] + "/publicIps") } end describe "#link[2]" do subject { @vdc.body.links[2] } it_should_behave_like "all rel=down vcloud links" it_should_behave_like "all vcloud application/xml types" - specify { subject.href.should == @mock_vdc[:href] + "/internetServices" } + specify { subject.href.should == URI.parse(@mock_vdc[:href] + "/internetServices") } end end describe :networks do subject { @vdc.body.networks } it_should_behave_like "the mocked tmrk network links"