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 2013/03/11 22:36:15 UTC

[5/41] git commit: * server/tests/test_helper.rb: allow accessing preferred items from config

* server/tests/test_helper.rb: allow accessing preferred items from config


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

Branch: refs/heads/master
Commit: 7252099f33d7595db793aea0774fe001ac2c140e
Parents: 8f7670a
Author: David Lutterkort <lu...@redhat.com>
Authored: Thu Mar 7 14:35:50 2013 -0800
Committer: David Lutterkort <lu...@redhat.com>
Committed: Mon Mar 11 12:28:33 2013 -0700

----------------------------------------------------------------------
 server/tests/test_helper.rb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/7252099f/server/tests/test_helper.rb
----------------------------------------------------------------------
diff --git a/server/tests/test_helper.rb b/server/tests/test_helper.rb
index 15d37e4..5ba791d 100644
--- a/server/tests/test_helper.rb
+++ b/server/tests/test_helper.rb
@@ -124,6 +124,9 @@ module Deltacloud
         Deltacloud::new(driver, params)
       end
 
+      def preferences(driver)
+        @hash[driver.to_s]["preferred"]
+      end
     end
 
     def self.config