var vows = require("vows");
var assert = require("assert");
var fs = require("fs");


vows.describe("Including Files").addBatch({
	"when running the script": {
		topic: function() {
			return require("../src/includer.js");
		},
		"it will create an output directory": function() {
			assert.equal(fs.existsSync("output") && fs.lstatSync("output").isDirectory(), true);
		},
		"it will create the same number of output files and source files": function() {
			assert.equal(fs.readdirSync("output").length, fs.readdirSync("source").length);
		}
	}
}).export(module);

@@ -198,11 +198,8 @@
 re(%22
-../
 src/
@@ -213,16 +213,16 @@
 r.js%22);%0A
+
 %09%09%7D,%0A%09%09%22
@@ -298,24 +298,29 @@
 existsSync(%22
+test/
 output%22) && 
@@ -329,24 +329,29 @@
 .lstatSync(%22
+test/
 output%22).isD
@@ -488,16 +488,21 @@
 irSync(%22
+test/
 output%22)
@@ -526,16 +526,21 @@
 irSync(%22
+test/
 source%22)

Fix relative paths.