Revert "Don't pop-up save dialog in specs"

This reverts commit e0ad22d0bd.
This commit is contained in:
probablycorey
2013-12-12 10:09:41 -08:00
parent 2d5b04579f
commit 787b6fb677
2 changed files with 0 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
WorkspaceView = require '../src/workspace-view'
EditorView = require '../src/editor-view'
Pane = require '../src/pane'
{$, $$} = require '../src/space-pen-extensions'
_ = require 'underscore-plus'
fs = require 'fs-plus'
@@ -2751,8 +2750,6 @@ describe "EditorView", ->
describe "when the editor view is attached but invisible", ->
describe "when the editor view's text is changed", ->
it "redraws the editor view when it is next shown", ->
spyOn(Pane.prototype, "promptToSaveItem").andReturn false
atom.workspaceView = new WorkspaceView
atom.workspaceView.openSync('sample.js')
atom.workspaceView.attachToDom()

View File

@@ -457,8 +457,6 @@ describe "WorkspaceView", ->
describe "window:toggle-invisibles event", ->
it "shows/hides invisibles in all open and future editors", ->
spyOn(Pane.prototype, "promptToSaveItem").andReturn 0
atom.workspaceView.height(200)
atom.workspaceView.attachToDom()
rightEditor = atom.workspaceView.getActiveView()