test/test_helper.rb in review-3.0.0.preview4 vs test/test_helper.rb in review-3.0.0.rc1

- old
+ new

@@ -10,14 +10,14 @@ File.join(File.dirname(__FILE__), 'assets') end def prepare_samplebook(srcdir) samplebook_dir = File.expand_path('../samples/sample-book/src/', File.dirname(__FILE__)) - FileUtils.cp_r(Dir.glob(samplebook_dir + '/*'), srcdir) + FileUtils.cp_r(Dir.glob(File.join(samplebook_dir, '*')), srcdir) # copy from review-jsbook template_dir = File.expand_path('../templates/latex/review-jsbook/', File.dirname(__FILE__)) - FileUtils.cp(Dir.glob(template_dir + '/*'), File.join(srcdir, 'sty')) - YAML.load(File.open(srcdir + '/config.yml')) + FileUtils.cp(Dir.glob(File.join(template_dir, '*')), File.join(srcdir, 'sty')) + YAML.load(File.open(File.join(srcdir, 'config.yml'))) end def compile_inline(text) @builder.compile_inline(text) end