Permalink
Browse files

Add test case for #38

  • Loading branch information...
ixti committed Oct 12, 2012
1 parent 094322d commit fd969892925f31e411e6fa27c606f593a68b8124
Showing with 37 additions and 0 deletions.
  1. +33 −0 test/issues/issue-38.js
  2. +3 −0 test/issues/issue-38/rpc/index.js
  3. +1 −0 test/issues/issue-38/rpc/rpc.js
View
@@ -0,0 +1,33 @@
+'use strict';
+
+
+// stdlib
+var fs = require('fs');
+var path = require('path');
+
+
+// mincer
+var mincer = require('../..');
+
+
+////////////////////////////////////////////////////////////////////////////////
+
+
+function report(message, test) {
+ console.log('[' + (test ? ' OK ' : 'FAIL') + '] ' + message);
+}
+
+
+////////////////////////////////////////////////////////////////////////////////
+
+
+var env = new (mincer.Environment)(__dirname);
+
+
+// append assets path
+env.appendPath('issue-38');
+
+
+env.findAsset('rpc').compile(function (err, asset) {
+ console.log(asset.toString());
+});
@@ -0,0 +1,3 @@
+//= require ./rpc
+
+var a = 1;
@@ -0,0 +1 @@
+var b = 2;

0 comments on commit fd96989

Please sign in to comment.