From b5b1ac67fa07b4f9331f8d05a9eb8d60a2f0382d Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Thu, 5 Jan 2012 11:20:18 -0800 Subject: [PATCH] Remove slow specs --- spec/atom/app-spec.coffee | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/spec/atom/app-spec.coffee b/spec/atom/app-spec.coffee index 91f4da67c..61d7d01c7 100644 --- a/spec/atom/app-spec.coffee +++ b/spec/atom/app-spec.coffee @@ -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 "" -