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 2012/12/11 04:48:25 UTC
[9/14] git commit: * tests/cimi/test_helper.rb (model_class): assert
that resourceURI is set
* 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 <lu...@redhat.com>
Authored: Tue Dec 4 20:19:44 2012 -0800
Committer: David Lutterkort <lu...@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"