require.config({ 

  baseUrl: '..',
  
  paths: {
    map: ['app/assets/javascripts/map'],
    jquery: ['vendor/assets/javascripts/jquery'],
    underscore: ['vendor/assets/javascripts/underscore'],
    backbone: ['vendor/assets/javascripts/backbone'],
    mps: ['vendor/assets/javascripts/minpubsub'],
    wax: ['vendor/assets/javascripts/wax.g.min'],
    jqueryui: ['vendor/assets/javascripts/jquery-ui-1.10.4.custom.min'],
    backbonequeryparams: ['vendor/assets/javascripts/backbone.queryparams'],
    gmap: ['app/assets/javascripts/map/gmap'],
    d3: ['vendor/assets/javascripts/d3'],
    backbone_cartodb: ['vendor/assets/javascripts/backbone.cartodb'],
    cartodb: ['vendor/assets/javascripts/cartodb'],
    store: ['vendor/assets/javascripts/store'],
    text: ['vendor/assets/javascripts/text'],
    Class: ['vendor/assets/javascripts/class'],
    uri: ['vendor/assets/javascripts/uri'],
    app: ['app/assets/javascripts/map/app'],
    nsa: ['app/assets/javascripts/map/nsa'],
    moment: ['vendor/assets/javascripts/moment'],
    analysis: ['app/assets/javascripts/map/analysis'],
    router: ['app/assets/javascripts/map/router'],
    mediator: ['app/assets/javascripts/map/mediator'],
    presenter: ['app/assets/javascripts/map/presenter'],
    views: ['app/assets/javascripts/map/views'],
    templates: ['app/assets/templates'],
    models: ['app/assets/javascripts/map/models'],
    collections: ['app/assets/javascripts/map/collections'],
    itertools: ['vendor/assets/javascripts/itertools'],
    
    spec: ['../jstest/spec'],
    helpers: ['../jstest/helpers'],
    jasmine: ['../jstest/lib/jasmine'],
    jasmine_html: ['../jstest/lib/jasmine-html'],
    jasmine_boot: ['../jstest/lib/boot'],
    mock_ajax: ['../jstest/lib/mock-ajax']
  },
  
  shim: {
    jqueryui: {
      deps: ['jquery'],
      exports: 'jqueryui'
    },
    underscore: {
      exports: '_'
    },
    backbone: {
      deps: ['jquery', 'underscore'],
      exports: 'Backbone',
    },
    backbone_cartodb: {
      deps: ['underscore', 'backbone'],
      exports: 'backbone_cartodb'
    },
    backbonequeryparams: {
      deps: ['backbone', 'underscore'],
      exports: 'backbonequeryparams'
    },
    uri: {
      exports: 'UriTemplate',
    },    
    Class: {
      exports: 'Class',
    },    
    app: {
      deps: ['mps', 'Class', 'router'],
      exports: 'app'
    },
    user: {
      deps: ['Class']
    },
    mps: {
      deps: ['jquery', 'underscore'],
      exports: 'mps',
      init: function(foo) {
        var mps = {
          subscribe: window.subscribe,
          unsubscribe: window.unsubscribe,
          publish: window.publish
        };
        return mps;
      }
    }
  }
});

require([
  'mock_ajax', 
  'map', 
  'spec/nsa_spec',
  'spec/analysis_spec'], 
function (mock_ajax, main, nsa_spec){
  console.log('Setting up specs...');
});
@@ -49,17 +49,18 @@
 %7B%0A    ma
-p
+in
 : %5B'app/
@@ -81,16 +81,21 @@
 ipts/map
+/main
 '%5D,%0A    
@@ -2740,17 +2740,18 @@
 , %0A  'ma
-p
+in
 ', %0A  's

fix spec-runner main module path