You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2012/12/06 03:42:53 UTC

[PATCH 09/13] fixup! CIMI tests: add content_type helper

From: David Lutterkort <lu...@redhat.com>

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

diff --git a/tests/cimi/test_helper.rb b/tests/cimi/test_helper.rb
index 6d2b79a..b19dd9e 100644
--- a/tests/cimi/test_helper.rb
+++ b/tests/cimi/test_helper.rb
@@ -355,7 +355,7 @@ module CIMI::Test::Methods
               coll.href.must_be_uri "#{root} collection"
               model = fetch(coll.href)
               last_response.code.must_equal 200
-              if last_response.headers[:content_type].eql?("application/json")
+              if last_response.content_type.eql?("application/json")
                 last_response.json["resourceURI"].wont_be_nil
               end
             else
-- 
1.7.7.6