insignia4u / incorporacion

Super cool app for recruitment.
0 stars 0 forks source link

Candidate Actions #7

Closed jmax closed 10 years ago

jmax commented 10 years ago

I'm a logged in and I visit a candidate detail page

when I click on "Register a new action" (current_path should be "/candidates/:candidate_id/actions/new") and I fill_in "action[category_name]" with "Phone Interview" and I fill_in "action[description]" with "I phoned the dude and he didn't answer" and I click on "Register"

then a new action should be created and a new action_category should be created with the name "Phone Interview" and this action_category should belong to the current company and the action should belong to this action_category and this action should belong to the candidate and this action should belong to the logged in user

jmax commented 10 years ago

Scenario: with invalid data

page should have content "Category name can't be blank" page should have content "description can't be blank"

jmax commented 10 years ago

Scenario: unauthorized access

I'm not logged in and I visit "/candidates/:candidate_id/actions/new"

current_path should be login path