end
##
- # delete a user, marking them as deleted and removing personal data
+ # destroy a user, marking them as deleted and removing personal data
def destroy
- @user.delete
+ @user.destroy
redirect_to user_path(:display_name => params[:display_name])
end
end
##
- # delete a user - leave the account but purge most personal data
- def delete
+ # destroy a user - leave the account but purge most personal data
+ def destroy
avatar.purge_later
self.display_name = "user_#{id}"
assert_select "div.note-comments ul li", :count => 2
assert_select "div.details", /Resolved by #{user.display_name}/
- user.delete
+ user.destroy
reset!
assert create(:moderator_user).has_role?("moderator")
end
- def test_delete
+ def test_destroy
user = create(:user, :with_home_location, :description => "foo")
- user.delete
+ user.destroy
assert_equal "user_#{user.id}", user.display_name
assert user.description.blank?
assert_nil user.home_lat