Remove slow specs

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-01-05 11:20:18 -08:00
parent aee7df0b9f
commit b5b1ac67fa

View File

@@ -14,30 +14,14 @@ describe "App", ->
describe "open", ->
describe "when opening a filePath", ->
it "displays it in a new window", ->
it "displays it in a new window with the contents of the file loaded", ->
filePath = require.resolve 'fixtures/sample.txt'
expect(app.windows().length).toBe 0
app.open filePath
expect(app.windows().length).toBe 1
it "loads a buffer with filePath contents", ->
filePath = require.resolve 'fixtures/sample.txt'
app.open filePath
newWindow = app.windows()[0]
expect(newWindow.rootView.editor.buffer.url).toEqual filePath
expect(newWindow.rootView.editor.buffer.getText()).toEqual fs.read(filePath)
describe "when opening a dirPath", ->
it "loads an empty buffer", ->
dirPath = require.resolve 'fixtures'
app.open dirPath
newWindow = app.windows()[0]
expect(newWindow.rootView.editor.buffer.url).toBeUndefined
expect(newWindow.rootView.editor.buffer.getText()).toBe ""