]> git.cworth.org Git - lmno-server/blobdiff - test
Move the keepalive functionality from Empires up to Game
[lmno-server] / test
diff --git a/test b/test
index 017f38eda85a0d4930b25f573746a80f850e9a96..55a4c2956318b04c5ac1e0c7c830cb4b358bfa0f 100755 (executable)
--- a/test
+++ b/test
@@ -292,20 +292,19 @@ tictactoe_game_path=tictactoe/$tictactoe_game_id
 
 tictactoe_move()
 {
-    curl_post $tictactoe_game_path/move "{\"square\": $1}"
+    curl_post $tictactoe_game_path/move "{ \"move\": $1 }"
 }
 
 TEST_SUBSECTION "Tic Tac Toe /move"
 
 TEST "Move to the center square"
 result=$(tictactoe_move 4)
-test "$result" = "true"
+test "$result" = '{"legal":true}'
 TEST_END
 
 TEST "Move to center square again is now illegal"
 result=$(tictactoe_move 4)
-test "$result" = "false"
+test "$result" = '{"legal":false,"message":"Square is already occupied"}'
 TEST_END
 
 TEST_REPORT
-