fix tests
This commit is contained in:
parent
eb99feb4a7
commit
690db9693f
10 changed files with 47 additions and 47 deletions
|
@ -30,11 +30,8 @@ class Admin::Teams::MembersController < Admin::Teams::ApplicationController
|
|||
end
|
||||
|
||||
def destroy
|
||||
if user_team.remove_member(team_member)
|
||||
redirect_to admin_team_path(user_team), notice: "Member #{team_member.name} was successfully removed from Team of users."
|
||||
else
|
||||
redirect_to admin_team_members(user_team), notice: "Something is wrong."
|
||||
end
|
||||
user_team.remove_member(team_member)
|
||||
redirect_to admin_team_path(user_team), notice: "Member #{team_member.name} was successfully removed from Team of users."
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue