deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [9/14] git commit: * tests/cimi/test_helper.rb (model_class): assert that resourceURI is set
Date Tue, 11 Dec 2012 03:48:25 GMT
* tests/cimi/test_helper.rb (model_class): assert that resourceURI is set


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/f72ea2da
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/f72ea2da
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/f72ea2da

Branch: refs/heads/master
Commit: f72ea2daff802e72451cfed74519c6ea8d44774c
Parents: c04330e
Author: David Lutterkort <lutter@redhat.com>
Authored: Tue Dec 4 20:19:44 2012 -0800
Committer: David Lutterkort <lutter@redhat.com>
Committed: Mon Dec 10 17:08:48 2012 -0800

----------------------------------------------------------------------
 tests/cimi/test_helper.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f72ea2da/tests/cimi/test_helper.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/test_helper.rb b/tests/cimi/test_helper.rb
index 0d318bf..bb75f51 100644
--- a/tests/cimi/test_helper.rb
+++ b/tests/cimi/test_helper.rb
@@ -154,6 +154,7 @@ module CIMI::Test::Methods
       resource = nil
       ct = resp.headers[:content_type]
       if ct == "application/json"
+        resp.json["resourceURI"].wont_be_nil
         resource = resp.json["resourceURI"].split("/").last
       elsif ct == "application/xml"
         if resp.xml.root.name == "Collection"


Mime
View raw message