Commits

Fred T-H committed dc809e6

updating tests to avoid assange

Comments (0)

Files changed (2)

mafiapp-1.0.0/test/mafiapp_SUITE.erl

                             [{job, "sports team GM"}], sports),
     ok = mafiapp:add_service("Pierre Gauthier", "Consigliere", {2009,6,30},
                              "Took on a huge, bad contract"),
-    ok = mafiapp:add_friend("Assange", [{other, "Undisclosed location"}],
-                            [{born, {1971,7,3}}, activist, journalist],
-                            transparent),
-    ok = mafiapp:add_service("Consigliere", "Assange", {2010,11,28},
-                             "Gave government documents"),
-    %% Assange owes us something so the debt is negative
+    ok = mafiapp:add_friend("Wayne Gretzky", [{other, "Canada"}],
+                            [{born, {1961,1,26}}, "hockey legend"],
+                            hockey),
+    ok = mafiapp:add_service("Consigliere", "Wayne Gretzky", {1964,1,26},
+                             "Gave first pair of ice skates"),
+    %% Wayne Gretzky owes us something so the debt is negative
     %% Gill Bates are equal
     %% Gauthier is owed a service.
-    [{-1,"Assange"},
+    [{-1,"Wayne Gretzky"},
      {0,"Gill Bates"},
      {1,"Pierre Gauthier"}] = mafiapp:debts("Consigliere"),
-    [{1,"Consigliere"}] = mafiapp:debts("Assange").
+    [{1, "Consigliere"}] = mafiapp:debts("Wayne Gretzky").
 
 enemies(_Config) ->
     undefined = mafiapp:find_enemy("Edward"),

mafiapp-1.0.1/test/mafiapp_SUITE.erl

                             [{job, "sports team GM"}], sports),
     ok = mafiapp:add_service("Pierre Gauthier", "Consigliere", {2009,6,30},
                              "Took on a huge, bad contract"),
-    ok = mafiapp:add_friend("Assange", [{other, "Undisclosed location"}],
-                            [{born, {1971,7,3}}, activist, journalist],
-                            transparent),
-    ok = mafiapp:add_service("Consigliere", "Assange", {2010,11,28},
-                             "Gave government documents"),
-    %% Assange owes us something so the debt is negative
+    ok = mafiapp:add_friend("Wayne Gretzky", [{other, "Canada"}],
+                            [{born, {1961,1,26}}, "hockey legend"],
+                            hockey),
+    ok = mafiapp:add_service("Consigliere", "Wayne Gretzky", {1964,1,26},
+                             "Gave first pair of ice skates"),
+    %% Wayne Gretzky owes us something so the debt is negative
     %% Gill Bates are equal
     %% Gauthier is owed a service.
-    [{-1,"Assange"},
+    [{-1,"Wayne Gretzky"},
      {0,"Gill Bates"},
      {1,"Pierre Gauthier"}] = mafiapp:debts("Consigliere"),
-    [{1, "Consigliere"}] = mafiapp:debts("Assange").
+    [{1, "Consigliere"}] = mafiapp:debts("Wayne Gretzky").
 
 enemies(_Config) ->
     undefined = mafiapp:find_enemy("Edward"),