Fix specs
This commit is contained in:
parent
514a127083
commit
321c1efb33
|
@ -26,7 +26,8 @@ Travis.ReposController = Ember.ArrayController.extend
|
|||
|
||||
init: ->
|
||||
@_super.apply this, arguments
|
||||
Visibility.every Travis.INTERVALS.updateTimes, @updateTimes.bind(this)
|
||||
if !Ember.testing
|
||||
Visibility.every Travis.INTERVALS.updateTimes, @updateTimes.bind(this)
|
||||
|
||||
recentRepos: (->
|
||||
Ember.ArrayProxy.extend(
|
||||
|
|
|
@ -62,8 +62,8 @@
|
|||
|
||||
equal($('a.slug', row).attr('href'), "/#{repo.slug}")
|
||||
equal($('a.last_build', row).attr('href'), repo.build.url)
|
||||
equal($('.duration', row).text(), repo.build.duration)
|
||||
equal($('.finished_at', row).text(), repo.build.finishedAt)
|
||||
equal($('.duration', row).text().trim(), repo.build.duration)
|
||||
equal($('.finished_at', row).text().trim(), repo.build.finishedAt)
|
||||
|
||||
@listsBuilds = (builds) ->
|
||||
listsItems('build', builds)
|
||||
|
|
|
@ -20,7 +20,7 @@ test "it doesn't trigger downloading missing parts if they come in timely fashio
|
|||
, 30
|
||||
|
||||
test "it triggers downloading missing parts if there is a missing part, even though final part arrived", ->
|
||||
expect(2)
|
||||
expect(3)
|
||||
stop()
|
||||
|
||||
callback = (missingNumbers) ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user