deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 7/7] Minor fix in mock driver minitest for buckets
Date Fri, 01 Jun 2012 11:24:06 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 server/tests/drivers/mock/buckets_test.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/tests/drivers/mock/buckets_test.rb b/server/tests/drivers/mock/buckets_test.rb
index be30c18..b10c5bd 100644
--- a/server/tests/drivers/mock/buckets_test.rb
+++ b/server/tests/drivers/mock/buckets_test.rb
@@ -170,8 +170,8 @@ describe 'Deltacloud API buckets' do
         xml_response.root[:id].must_equal b[:id]
         (xml_response/'bucket').wont_be_empty
         (xml_response/'bucket').size.must_equal 1
-        (xml_response/'bucket').first[:id].wont_be_nil
-        (xml_response/'bucket').first[:href].wont_be_nil
+        (xml_response/'bucket').first.text.wont_be_nil
+        (xml_response/'bucket').first.text.must_equal r[:id]
         (xml_response/'content_length').wont_be_empty
         (xml_response/'content_length').size.must_equal 1
         (xml_response/'content_length').first.text.must_match /^(\d+)$/
-- 
1.7.6.5


Mime
View raw message