deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/7] git commit: Minor fix in mock driver minitest for buckets
Date Mon, 04 Jun 2012 11:24:58 GMT
Updated Branches:
  refs/heads/master f965e7585 -> 4ad05b73c


Minor fix in mock driver minitest for buckets


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

Branch: refs/heads/master
Commit: 4ad05b73c7be81047f8bac692a510c38cd24147a
Parents: 858f7b6
Author: marios <marios@redhat.com>
Authored: Fri Jun 1 14:10:55 2012 +0300
Committer: marios <marios@redhat.com>
Committed: Mon Jun 4 14:24:12 2012 +0300

----------------------------------------------------------------------
 server/tests/drivers/mock/buckets_test.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/4ad05b73/server/tests/drivers/mock/buckets_test.rb
----------------------------------------------------------------------
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+)$/


Mime
View raw message