'use strict';

var extend = require('extend');
var path = require('path');
var rump = require('rump');
var karma = require('./karma');

exports.rebuild = function() {
  rump.configs.main.globs = extend(true, {
    build: {
      tests: '**/*.js'
    }
  }, rump.configs.main.globs);

  rump.configs.main.paths = extend(true, {
    source: {
      tests: 'tests'
    }
  }, rump.configs.main.paths);

  rump.configs.main.test = extend(true, {
    browsers: ['PhantomJS']
  }, rump.configs.main.test);

  exports.karma = karma();
};

exports.rebuild();

'use strict';

var extend = require('extend');
var path = require('path');
var rump = require('rump');
var karma = require('./karma');

exports.rebuild = function() {
  rump.configs.main.globs = extend(true, {
    build: {
      tests: rump.configs.main.globs.build.scripts
    }
  }, rump.configs.main.globs);

  rump.configs.main.paths = extend(true, {
    source: {
      tests: 'tests'
    }
  }, rump.configs.main.paths);

  rump.configs.main.test = extend(true, {
    browsers: ['PhantomJS']
  }, rump.configs.main.test);

  exports.karma = karma();
};

exports.rebuild();

--- 
+++ 
@@ -8,7 +8,7 @@
 exports.rebuild = function() {
   rump.configs.main.globs = extend(true, {
     build: {
-      tests: rump.configs.main.globs.build.scripts
+      tests: '**/*.js'
     }
   }, rump.configs.main.globs);
 
Set up own glob for tests
