To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorManage Work Units
In order to manage work units
User
wants a nice management interface
- Scenarios
-
- Register new work unit
- Attempt to register a work unit on a suspended client
- Edit a work unit
- Attempt to edit a work unit you do not have access to
- Register new work unit
-
- Given
- I am an authenticated user with an admin role
- And
- a client "test client" exists with name: "test client", initials: "TTC"
- And
- a project "test project" exists with name: "test project", client: client "test client"
- And
- a ticket "test ticket" exists with project: project "test project", name: "test ticket"
- And
- I visit /
- When
- I select "test client" from "work_unit_client_id"
- And
- I select "test project" from "work_unit_project_id"
- And
- I select "test ticket" from "work_unit_ticket_id"
- And
- I select "Overtime" from "hours_type"
- And
- I fill in "Hours" with "2"
- And
- I fill in "work_unit_description" with "test description"
- And
- I press "Create Work Unit"
- Then
- I should see "TTC: 3.0" within ".overtime"
- Attempt to register a work unit on a suspended client
-
- Given
- I am an authenticated user with an admin role
- And
- a client "test client" exists with name: "test client", initials: "TTC", status: "Suspended"
- And
- a project "test project" exists with name: "test project", client: client "test client"
- And
- a ticket "test ticket" exists with project: project "test project", name: "test ticket"
- And
- I visit /
- When
- I select "test client" from "work_unit_client_id"
- And
- I select "test project" from "work_unit_project_id"
- And
- I select "test ticket" from "work_unit_ticket_id"
- And
- I select "Overtime" from "hours_type"
- And
- I fill in "Hours" with "2"
- And
- I fill in "work_unit_description" with "test description"
- And
- I press "Create Work Unit"
- Then
- I should see "This client is suspended. Please contact an Administrator."
- Edit a work unit
-
- Given
- I am an authenticated user with an admin role
- And
- a client "test client" exists with name: "test client", initials: "TTC", status: "Suspended"
- And
- a project "test project" exists with name: "test project", client: client "test client"
- And
- a ticket "test ticket" exists with project: project "test project", name: "test ticket"
- And
- a work_unit exists with ticket: ticket "test ticket", description: "New description", hours: "1"
- When
- I go to the work unit's page
- And
- I follow "Edit"
- And
- I fill in "Hours" with "2"
- And
- I press "Update Work unit"
- Then
- I should see "Work unit updated" within "#flash_notice"
- Attempt to edit a work unit you do not have access to
-
- Given
- I am an authenticated user
- And
- a client "test client" exists with name: "test client", initials: "TTC", status: "Suspended"
- And
- a project "test project" exists with name: "test project", client: client "test client"
- And
- a ticket "test ticket" exists with project: project "test project", name: "test ticket"
- And
- a work_unit exists with ticket: ticket "test ticket", description: "New description", hours: "1"
- When
- I go to the work unit's page
- Then
- I should see "Access denied" within "#flash_notice"
Last published over 5 years ago by knewter.