o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1349983245.8976278: @value", {I" class:EFI"BundledAsset;FI"logical_path;FI"konacha/runner.js;TI" pathname;FI"l/Users/paul/.rvm/gems/ruby-1.9.3-p194/gems/konacha-2.0.0.beta3/app/assets/javascripts/konacha/runner.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-10-11T15:20:31-04:00;FI" length;Fi>I" digest;F"%8f524f5341bb3e522e794d1bec29af28I" source;FI">Konacha = { getEvents: function() { return JSON.stringify(Konacha.events); } }; mocha.reporter(function(runner) { var createTestObject = function(test, status) { var obj = { title:test.title, fullTitle:test.fullTitle(), duration:test.duration, parentFullTitle:test.parent.fullTitle(), status:status }; if (status == "failed") obj.error = test.err; // Contains message, expected, actual, operator, stack return obj; }; var createSuiteObject = function(suite) { var obj = { title:suite.title, fullTitle:suite.fullTitle() }; if (suite.parent) obj.parentFullTitle = suite.parent.fullTitle(); return obj; }; Mocha.reporters.Base.call(this, runner); runner.on('start', function() { Konacha.events = []; }); runner.on('suite', function(suite) { if (suite.fullTitle() && suite.fullTitle().length > 0) Konacha.events.push({event:'suite', data:createSuiteObject(suite), type:'suite'}); }); runner.on('test', function(test) { Konacha.events.push({event:'test', data:createTestObject(test), type:'test'}); }); runner.on('pass', function(test) { Konacha.events.push({event:'pass', data:createTestObject(test, "passed"), type:'test'}); }); runner.on('fail', function(test) { Konacha.events.push({event:'fail', data:createTestObject(test, "failed"), type:'test'}); }); runner.on('pending', function(test) { Konacha.events.push({event:'pending', data:createTestObject(test, "pending"), type:'test'}); }); runner.on('suite end', function(suite) { if (suite.fullTitle() && suite.fullTitle().length > 0) Konacha.events.push({event:'suite end', data:createSuiteObject(suite), type:'suite'}); }); runner.on('end', function() { Konacha.events.push({event:'end', data:{}}); }); }); ;FI"required_assets_digest;F"%7e4c9b2f2742f7e8bcfd26fc96c5a089I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862