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 2013/03/07 23:57:43 UTC

[PATCH 5/6] * server/tests/test_helper.rb: allow accessing preferred items from config

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

---
 server/tests/test_helper.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/server/tests/test_helper.rb b/server/tests/test_helper.rb
index 9d37ccf..8bcb374 100644
--- a/server/tests/test_helper.rb
+++ b/server/tests/test_helper.rb
@@ -124,6 +124,13 @@ module Deltacloud
         Deltacloud::new(driver, params)
       end
 
+      def preferences(driver)
+        @hash[driver.to_s]["preferred"]
+      end
+
+      def set_preferences(driver, prefs)
+        @hash[driver.to_s]["preferred"] = prefs
+      end
     end
 
     def self.config
-- 
1.8.1.4