Created
March 8, 2012 02:49
-
-
Save nthx/1998231 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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