Revision: 2643
Author: janne.t.harkonen
Date: Tue Mar 16 03:49:19 2010
Log: test cleanup
http://code.google.com/p/robotframework/source/detail?r=2643

Modified:
 /trunk/proto/atdd_example/VacalcLibrary.py
 /trunk/proto/atdd_example/atest/query_amount_of_vacation.txt

=======================================
--- /trunk/proto/atdd_example/VacalcLibrary.py  Tue Mar 16 03:02:30 2010
+++ /trunk/proto/atdd_example/VacalcLibrary.py  Tue Mar 16 03:49:19 2010
@@ -25,9 +25,8 @@
     def get_employee(self, name):
         self._run('get_employee', name)

-    def get_vacation(self, name, year):
-        self._run('get_vacation', name, year)
-
+    def show_vacation(self, name, year):
+        self._run('show_vacation', name, year)

     def _run(self, command, *args):
         cmd = [sys.executable, 'vacalc.py', command] + list(args)
=======================================
--- /trunk/proto/atdd_example/atest/query_amount_of_vacation.txt Tue Mar 16 03:02:30 2010 +++ /trunk/proto/atdd_example/atest/query_amount_of_vacation.txt Tue Mar 16 03:49:19 2010
@@ -4,18 +4,18 @@
   Given no users exist in the system
   And employee Kari H is added with start date 2010-1-1
   When amount of vacation days for Kari H is queried for year 2010
- Then message "Kari H has 6 days for vacation during holiday credit year 2010" is shown
+  Then message "Kari H has 6 vacation days in year 2010" is shown

 Employee vacations queary fails if employee does not exist
   Given no users exist in the system
   When amount of vacation days for Kari H is queried for year 2010
-  Then error message "Kari H does not exist in the system" is shown
+  Then error message "Employee 'Kari H' not found" is shown


 *** User Keywords ***

 When amount of vacation days for ${name} is queried for year ${year}
-  Get vacation  "${name}"  ${year}
+  Show vacation  ${name}  ${year}


 *** Settings ***

Reply via email to