Sha256: 435231fc2521cc765896f709250efe3eeb345ad68908851ba29e348c1c88b3bb

Contents?: true

Size: 1009 Bytes

Versions: 1

Compression:

Stored size: 1009 Bytes

Contents

var Require = {
  require: function(path_from_javascripts) {
    if(!Require.required_paths[path_from_javascripts]) {
      var full_path = path_from_javascripts + ".js?" + Require.cache_buster;
      document.write("<script src='" + full_path + "' type='text/javascript'></script>");
      Require.required_paths[path_from_javascripts] = true;
    }
  },

  required_paths: {},
  cache_buster: parseInt(new Date().getTime()/(1*1000))
}

var require = Require.require;

JSSpec.Logger.prototype.onRunnerEndWithoutServerNotification = JSSpec.Logger.prototype.onRunnerEnd;
JSSpec.Logger.prototype.onRunnerEndWithServerNotification = function() {
  this.onRunnerEndWithoutServerNotification();
  $.ajax({
    type: 'POST',
    url: '/results',
    data: {
      'text': "---------------------------------------------------------------------------------------\n\n+++++++++++++++++++++++++++++++++++++"
    }
  });  
}
JSSpec.Logger.prototype.onRunnerEnd = JSSpec.Logger.prototype.onRunnerEndWithServerNotification;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
js_spec-0.0.1 core/JSSpecExtensions.js