spec/spec_helper.rb in facter-1.6.2 vs spec/spec_helper.rb in facter-1.6.3
- old
+ new
@@ -1,8 +1,13 @@
dir = File.expand_path(File.dirname(__FILE__))
SPECDIR = dir
+def fixture_data(file)
+ File.read(File.join(SPECDIR, "fixtures", file))
+end
+
+
$LOAD_PATH.unshift("#{dir}/")
$LOAD_PATH.unshift("#{dir}/../lib")
require 'rubygems'
require 'mocha'