deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [14/50] [abbrv] git commit: * spec/spec_helper.rb: define require_relative
Date Tue, 22 May 2012 20:19:37 GMT
* spec/spec_helper.rb: define require_relative


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

Branch: refs/heads/master
Commit: f82174d0b58e98c98a39fda3d6e605b8a031ff8c
Parents: 833e5db
Author: David Lutterkort <lutter@redhat.com>
Authored: Wed May 16 16:15:40 2012 -0700
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue May 22 22:17:38 2012 +0200

----------------------------------------------------------------------
 server/spec/spec_helper.rb |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f82174d0/server/spec/spec_helper.rb
----------------------------------------------------------------------
diff --git a/server/spec/spec_helper.rb b/server/spec/spec_helper.rb
index 51aa1fe..47b8672 100644
--- a/server/spec/spec_helper.rb
+++ b/server/spec/spec_helper.rb
@@ -19,7 +19,16 @@ require 'pp'
 require 'rspec/core'
 require 'xmlsimple'
 
-load File.join(File.dirname(__FILE__), '..', 'lib', 'deltacloud', 'core_ext.rb')
+unless Kernel.respond_to?(:require_relative)
+  module Kernel
+    def require_relative(path)
+      require File.join(File.dirname(caller[0]), path.to_str)
+    end
+  end
+end
+
+require_relative '../lib/deltacloud/core_ext.rb'
+require_relative '../lib/cimi/models.rb'
 
 DATA_DIR = File::join(File::expand_path(File::dirname(__FILE__)), 'cimi', 'data')
 


Mime
View raw message