I am developing a card game in Ruby on Rails and trying to figure out how best to test it.
When a player joins the game, their Player object is saved in the session. Obviously, for the game to work, I need more than one player in the game at once. Since sessions are the same for different tabs in the same browser, I am currently testing a two-player game by opening the application in FireFox and Internet Explorer at the same time.
Before I leave and download Chrome to check out the third player ... is there an easier way to do this?
Edit: To clarify, I'm still not at the point where I want to run automated tests to see if it breaks. I am at the stage when I want to be able to hack back-end db, and then refresh the page and see how it looks now, or press a button to see the answer (usually) about the refusal or the behavior to the right.
browser ruby-on-rails session testing
Chowlett
source share