Remove $native.saveDialog. It's replaced with atom.showSaveDialog

This commit is contained in:
Nathan Sobo
2012-08-30 11:08:55 -06:00
parent eaafa9eade
commit d5ffdb153a
4 changed files with 84 additions and 101 deletions

View File

@@ -321,11 +321,11 @@ describe "Editor", ->
expect(editor.getPath()).toBeUndefined()
editor.getBuffer().setText 'Save me to a new path'
spyOn($native, 'saveDialog').andCallFake -> selectedFilePath
spyOn(atom, 'showSaveDialog').andCallFake (callback) -> callback(selectedFilePath)
it "presents a 'save as' dialog", ->
editor.save()
expect($native.saveDialog).toHaveBeenCalled()
expect(atom.showSaveDialog).toHaveBeenCalled()
describe "when a path is chosen", ->
it "saves the buffer to the chosen path", ->