Skip to content

Instantly share code, notes, and snippets.

@nthx
Created March 8, 2012 02:49
Show Gist options
  • Save nthx/1998231 to your computer and use it in GitHub Desktop.
Save nthx/1998231 to your computer and use it in GitHub Desktop.
describe "Any Game", ->
describe "GameResults", ->
describe "When any application starts", ->
afterEach ->
$("#gameScreen").remove()
it "shooter should show game results when game ends", ->
[engine, services] = runEngineApp('shooter', test.shooter.ServerResponses)
services.eventBroker.trigger('game:finished:won', {})
expect($(".popup")).toHaveText(/Udało Ci się/)
it "monopoly should show game results when game ends", ->
[engine, services] = runEngineApp('monopoly', test.monopoly.ServerResponses)
services.eventBroker.trigger('game:finished:won', {})
expect($(".popup")).toHaveText(/Udało Ci się/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment