o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1354777203.2983522: @value"I{I" class:EFI"ProcessedAsset;FI"logical_path;FI"(teabag-reporters/jasmine-console.js;FI" pathname;FI"`/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag-reporters/jasmine-console.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-06T00:00:00-07:00;FI" length;Fiü I" digest;F"%d4e6a9923485f7168f0c23764ec7d1b0I" source;FI"ü //class Teabag.Reporter.JasmineConsole // // fails = [] // total = 0 // // constructor: -> // jasmine.CATCH_EXCEPTIONS = true; // @start = Date.now() // // // reportSpecResults: (spec) -> // total += 1 // if spec.results().passed() // status = 'pass' // else // @trackFailure(spec) // status = 'fail' // @log(type: 'spec', status: status, description: spec.description, suite: spec.suite.getFullName()) // // // reportRunnerResults: -> // @log(type: 'results', total: total, failures: fails, elapsed: Date.now() - @start) // Teabag.finished = true // // // specFilter: (spec) -> // paramMap = {} // params = window.location.search.substring(1).split('&') // for param in params // p = param.split('=') // paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]) // return true unless paramMap['spec'] // return spec.getFullName().indexOf(paramMap.spec) == 0 // // // trackFailure: (spec) -> // for item in spec.results().getItems() // fails.push(spec: spec.getFullName(), description: item.toString(), trace: item.trace.stack) // // // log: (object = {}) -> // object['_teabag'] = true // console.log(JSON.stringify(object)) // (function() { Teabag.Reporter.JasmineConsole = (function() { var fails, total; fails = []; total = 0; function JasmineConsole() { jasmine.CATCH_EXCEPTIONS = true; this.start = Date.now(); } JasmineConsole.prototype.reportSpecResults = function(spec) { var status; total += 1; if (spec.results().passed()) { status = 'pass'; } else { this.trackFailure(spec); status = 'fail'; } return this.log({ type: 'spec', status: status, description: spec.description, suite: spec.suite.getFullName() }); }; JasmineConsole.prototype.reportRunnerResults = function() { this.log({ type: 'results', total: total, failures: fails, elapsed: Date.now() - this.start }); return Teabag.finished = true; }; JasmineConsole.prototype.specFilter = function(spec) { var p, param, paramMap, params, _i, _len; paramMap = {}; params = window.location.search.substring(1).split('&'); for (_i = 0, _len = params.length; _i < _len; _i++) { param = params[_i]; p = param.split('='); paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]); } if (!paramMap['spec']) { return true; } return spec.getFullName().indexOf(paramMap.spec) === 0; }; JasmineConsole.prototype.trackFailure = function(spec) { var item, _i, _len, _ref, _results; _ref = spec.results().getItems(); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { item = _ref[_i]; _results.push(fails.push({ spec: spec.getFullName(), description: item.toString(), trace: item.trace.stack })); } return _results; }; JasmineConsole.prototype.log = function(object) { if (object == null) { object = {}; } object['_teabag'] = true; return console.log(JSON.stringify(object)); }; return JasmineConsole; })(); }).call(this); ;FI"dependency_digest;F"%9681cb402766aca90673b74810c2c1a1I"required_paths;F[I"`/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag-reporters/jasmine-console.js;FI"dependency_paths;F[{I" path;FI"`/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag-reporters/jasmine-console.js;FI" mtime;FI"2012-12-06T00:00:00-07:00;FI" digest;F"%d4e6a9923485f7168f0c23764ec7d1b0I" _version;F"%6776f581a4329e299531e1d52aa59832