Use buffer.getPath not @getPath in project

😬
Esse commit está contido em:
Ben Ogle
2015-01-14 15:17:55 -08:00
commit 274ae6cd57
2 arquivos alterados com 2 adições e 1 exclusões
+1
Ver Arquivo
@@ -72,6 +72,7 @@ describe "Project", ->
expect(notification.getType()).toBe 'warning'
expect(notification.getDetail()).toBe 'SomeError'
expect(notification.getMessage()).toContain '`resurrect`'
expect(notification.getMessage()).toContain 'fixtures/dir/a'
describe ".open(path)", ->
[absolutePath, newBufferHandler] = []
+1 -1
Ver Arquivo
@@ -338,7 +338,7 @@ class Project extends Model
handle()
atom.notifications.addWarning """
Unable to read file after file `#{error.eventType}` event.
Make sure you have permission to access `#{@getPath()}`.
Make sure you have permission to access `#{buffer.getPath()}`.
""",
detail: error.message
dismissable: true