You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:18:09 UTC
svn commit: r962031 -
/incubator/deltacloud/trunk/client-ruby/specs/instances_spec.rb
Author: lutter
Date: Thu Jul 8 23:18:08 2010
New Revision: 962031
URL: http://svn.apache.org/viewvc?rev=962031&view=rev
Log:
Test some resource_id
Modified:
incubator/deltacloud/trunk/client-ruby/specs/instances_spec.rb
Modified: incubator/deltacloud/trunk/client-ruby/specs/instances_spec.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client-ruby/specs/instances_spec.rb?rev=962031&r1=962030&r2=962031&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client-ruby/specs/instances_spec.rb (original)
+++ incubator/deltacloud/trunk/client-ruby/specs/instances_spec.rb Thu Jul 8 23:18:08 2010
@@ -55,8 +55,13 @@ describe "images" do
DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) do |client|
instance = client.create_instance( 'img1', 'm1-small' )
instance.should_not be_nil
- instance.uri.should_not be_nil
- instance.uri.should be_a( String )
+ instance.uri.should eql( API_URL + '/instances/inst3' )
+ instance.resource_id.should eql( 'inst3' )
+
+ instance = client.create_instance( 'img1', 'm1-small' )
+ instance.should_not be_nil
+ instance.uri.should eql( API_URL + '/instances/inst4' )
+ instance.resource_id.should eql( 'inst4' )
end
end