DoSomething/ds-mdata-responder — pull request #312 by tongxiang (2014-11-14 23:04:30+00:00)
Title: 1) Tests for "end game from user exit" functionality 2) bug fixes

#### What's this PR do?
This PR:
1. Sets up tests for the "end game from user exit" functionality of competitive story games. Creates Game 1, then invites a player from Game 1 to Game 2, checks the state of both gameDocs and players from both games.
2. Fixes a bug in the `_endGameFromPlayerExit` function.

#### Where should the reviewer start?
Check out the `test/EndGameFromUserExit.js` function, then the bug fix in the `SGCompetitiveStoryController.js`.

#### How should this be manually tested?
Run `npm test'!

#### What are the relevant tickets?
Closes #303.