gitlabhq/spec/requests/api
Felix Gilcher ce6436b98a Don't crash when removing a user that's not project member
The attempt to revoke project access for a user that was not member of the
project results in a 500 Internal Server error where it actually should
result in a 200 OK since after the operation, the user is not member of
the project. This turns the operation into an idempotent call that can
be repeated with no ill effects.

Updated the spec and changed the code accordingly. However, the result differs
slightly, as we can't return the users project access level if the user was not
member. I'm not aware if anybody relies on the result of this call.

Fixes #2832
2013-02-01 13:53:35 +00:00
..
issues_spec.rb Rspec fixes 2013-01-04 18:50:31 +02:00
merge_requests_spec.rb Rspec fixes 2013-01-04 18:50:31 +02:00
milestones_spec.rb Rspec fixes 2013-01-04 18:50:31 +02:00
notes_spec.rb Rspec fixes 2013-01-04 18:50:31 +02:00
projects_spec.rb Don't crash when removing a user that's not project member 2013-02-01 13:53:35 +00:00
session_spec.rb Remove backward compatibility of factories. 2012-11-13 22:27:45 +11:00
users_spec.rb Add optional signup. 2013-01-18 11:57:31 +01:00