From: David Lutterkort <[email protected]>
---
tests/cimi/test_helper.rb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tests/cimi/test_helper.rb b/tests/cimi/test_helper.rb
index ace3e37..4f1ade2 100644
--- a/tests/cimi/test_helper.rb
+++ b/tests/cimi/test_helper.rb
@@ -17,7 +17,6 @@
require 'rubygems'
require 'require_relative'
require_relative '../helpers/common.rb'
-
require 'singleton'
require_relative "../../server/lib/cimi/models"
@@ -121,6 +120,10 @@ class CIMI::Test::Spec < MiniTest::Spec
@content_type = CONTENT_TYPES[fmt]
end
+ def fetch(uri, model_class)
+ fetch_model(uri, model_class) { |fmt| get(uri, :accept => fmt) }
+ end
+
def self.it desc = "anonymous", opts = {}, &block
block ||= proc { skip "(no tests defined)" }
--
1.7.7.6