fix gists specs

This commit is contained in:
Justin Palmer
2013-02-04 11:38:31 -08:00
parent 09efd15122
commit cf9ed92072
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ describe "CommandPalette", ->
afterEach ->
rootView.remove()
fdescribe "when command-palette:toggle is triggered on the root view", ->
describe "when command-palette:toggle is triggered on the root view", ->
it "shows a list of all valid command descriptions, names, and keybindings for the previously focused element", ->
keyBindings = _.losslessInvert(keymap.bindingsForElement(rootView.getActiveEditor()))
for eventName, description of rootView.getActiveEditor().events()

View File

@@ -44,8 +44,8 @@ describe "Gists package", ->
expect(pasteboard.read()[0]).toBe 'https://gist.github.com/1'
it "flashes that the Gist was created", ->
expect(rootView.find('.gist-notification')).toExist()
expect(rootView.find('.gist-notification .message').text()).toBe 'Gist 1 created'
expect(rootView.find('.notification')).toExist()
expect(rootView.find('.notification .title').text()).toBe 'Gist 1 created'
advanceClock(2000)
expect(rootView.find('.gist-notification')).not.toExist()