From 9011f9d85dd44d06cbcd2a6186ec85cdb03a8a5a Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Tue, 4 Nov 2014 21:22:58 -0500 Subject: [PATCH] Pass test suite. * Add `travis.source_endpoint` meta (fixes many tests with hard expectations on `http://github.com` being in URL paths). * Wrap `Ember.run.once` in a `Ember.run` (prevents test auto-run assertion). * Fix expect counts for a couple tests. --- assets/scripts/lib/travis/log_chunks.coffee | 7 ++++--- assets/scripts/spec/unit/log_chunks_spec.coffee | 4 ++-- public/spec.html | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/scripts/lib/travis/log_chunks.coffee b/assets/scripts/lib/travis/log_chunks.coffee index d3424e6c..12b125c7 100644 --- a/assets/scripts/lib/travis/log_chunks.coffee +++ b/assets/scripts/lib/travis/log_chunks.coffee @@ -76,6 +76,7 @@ Travis.LogChunks = Em.ArrayProxy.extend if part.final @notifyPropertyChange('final') - Ember.run.once this, -> - @tryFinalizing() - @resetTimeout() + Ember.run this, -> + Ember.run.once this, -> + @tryFinalizing() + @resetTimeout() diff --git a/assets/scripts/spec/unit/log_chunks_spec.coffee b/assets/scripts/spec/unit/log_chunks_spec.coffee index d08bedd0..724ace17 100644 --- a/assets/scripts/spec/unit/log_chunks_spec.coffee +++ b/assets/scripts/spec/unit/log_chunks_spec.coffee @@ -40,7 +40,7 @@ test "it triggers downloading missing parts if there is a missing part, even tho , 40 test "it triggers downloading next parts if there is no final part", -> - expect(2) + expect(4) stop() callback = (missingNumbers, after) -> @@ -58,7 +58,7 @@ test "it triggers downloading next parts if there is no final part", -> , 35 test "it triggers downloading all available parts if there is no parts yet", -> - expect(1) + expect(2) stop() callback = (missingNumbers, after) -> diff --git a/public/spec.html b/public/spec.html index 9c112818..fee47058 100644 --- a/public/spec.html +++ b/public/spec.html @@ -3,6 +3,7 @@ + Travis CI - Free Hosted Continuous Integration Platform for the Open Source Community