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:52 UTC

[PATCH 08/13] * tests/cimi/cep_test.rb: simplify/correct test for Accept: */*

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

---
 tests/cimi/cep_test.rb |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/cimi/cep_test.rb b/tests/cimi/cep_test.rb
index fcac30d..24e19bf 100644
--- a/tests/cimi/cep_test.rb
+++ b/tests/cimi/cep_test.rb
@@ -66,7 +66,8 @@ class CloundEntryPointBehavior < CIMI::Test::Spec
 
   query_the_cep(ROOTS)
 
-  # Testing "*/*" Accept Headers returns json output
-  response = RestClient.get(api.cep_url, "Accept" => "*/*")
-  log.info( " */* accept headers return: " + response.json.to_s() )
+  it "should handle Accept of */*", :only => :json do
+    response = RestClient.get(api.cep_url, "Accept" => "*/*")
+    response.content_type.must_be_one_of CONTENT_TYPES.values
+  end
 end
-- 
1.7.7.6