dox Executable Documentation

Delete user

Delete a user

Given the user 'Bart Simpson'
Given the user 'Lisa Simpson'
Given I am logged in as admin
When I delete the user 'Bart Simpson'
Then there should be 1 users
Then there should be a user with the the name 'Lisa Simpson'

Not admin

Given the user 'Bart Simpson'
When I delete the user 'Bart Simpson'
Then I should be redirected to '../order/list.html'