test/test_helper.rb in review-1.5.0 vs test/test_helper.rb in review-1.6.0
- old
+ new
@@ -4,9 +4,13 @@
def touch_file(path)
File.open(path, "w").close
path
end
+def assets_dir
+ File.join(File.dirname(__FILE__), "assets")
+end
+
def prepare_samplebook(srcdir)
samplebook_dir = File.expand_path("sample-book/src/", File.dirname(__FILE__))
FileUtils.cp_r(Dir.glob(samplebook_dir + "/*"), srcdir)
YAML.load(File.open(srcdir + "/config.yml"))
end