Git.refreshStatuses() -> Git.refreshStatus()

This commit is contained in:
Kevin Sawicki 2013-02-27 14:48:41 -08:00
parent 50bc1aac74
commit c6e89d33f8
2 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ describe "Git", ->
fs.write(path, "#{originalPathText} edited line")
expect(repo.getDiffStats(path)).toEqual {added: 1, deleted: 1}
describe ".refreshStatuses()", ->
describe ".refreshStatus()", ->
[newPath, modifiedPath, cleanPath, originalModifiedPathText] = []
beforeEach ->
@ -167,7 +167,7 @@ describe "Git", ->
fs.write(modifiedPath, 'making this path modified')
statusHandler = jasmine.createSpy('statusHandler')
repo.on 'statuses-changed', statusHandler
repo.refreshStatuses()
repo.refreshStatus()
waitsFor ->
statusHandler.callCount > 0

View File

@ -34,7 +34,7 @@ class Git
$ = require 'jquery'
@subscribe $(window), 'focus', =>
@refreshIndex()
@refreshStatuses()
@refreshStatus()
getRepo: ->
unless @repo?
@ -107,7 +107,7 @@ class Git
isSubmodule: (path) ->
@getRepo().isSubmodule(@relativize(path))
refreshStatuses: ->
refreshStatus: ->
new RepositoryStatusTask(this).start()
_.extend Git.prototype, Subscriber