ootbdev / aobotracker-HAS-MOVED

Development Team's Time/Expenses Tracker as an RoR Exercise
0 stars 0 forks source link

Model: Task #2

Open alvinslee opened 10 years ago

alvinslee commented 10 years ago

This model depends on the completion of Issue #1 and Issue #3 .

A Task represents an entry in the user's log of time spent working. Each task belongs to a single user, who will have many tasks. Only managers and employees can have tasks. The administrator (whose single purpose is to add/delete manager users) should not be allowed to have any tasks.

A task consists of a task type, a description, and start date/time and end date/time.

A user is not allowed to have two tasks which overlap in their times. A user can, however, have many tasks which have identical categories and descriptions.

The cucumber feature tests related to this issue should be tagged with @task and @model so that we can group our tests when needed.

mravery commented 10 years ago

A task should also have an assigned user (i.e. you can't have a task that's not assigned to someone).

mravery commented 10 years ago

"Category" == "task type"