Revision: 4178
Author: janne.t.harkonen
Date: Wed Sep 29 14:16:32 2010
Log: fix tests
http://code.google.com/p/robotframework/source/detail?r=4178

Modified:
 /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt
 /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt

=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt Wed Sep 29 13:37:35 2010 +++ /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/add_employee.txt Wed Sep 29 14:16:32 2010
@@ -2,10 +2,10 @@

 Adding employee
     Given no employee "Juha" exists in the system
-    When "Juha" with start date 2010-1-1 is added
+    When "Juha" with start date 2010-01-01 is added
     Then message "Employee 'Juha' was added successfully" is shown
     and "Juha" exists in the employee listing
-    and "Juha" with start date 2010-1-1 exists in the database
+    and "Juha" with start date 2010-01-01 exists in the database

 Adding employee with same ID
     Given employee "Juha" with start date 2010-1-1 exists in the system
=======================================
--- /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt Wed Sep 29 14:01:19 2010 +++ /trunk/proto/atdd-tutorial-berlin-2010/atest/vacalc/resource.txt Wed Sep 29 14:16:32 2010
@@ -32,7 +32,8 @@
     ${selected item}=  Get Selected Value From List  employee_list
     Should Be Equal  ${name}  ${selected item}

-Employee exists in the database  ${name}  ${date}
+Employee exists in the database
+    [Arguments]  ${name}  ${date}
     ${data} =  Get File  ${DATABASE}
-    Should Contain  ${data}  ${name}, ${date}
-
+    Should Contain  ${data}  ${name},${date}
+

Reply via email to