# Changing to a valid editor should work
user.preferred_editor = "id"
put preferences_path, :params => { :user => user.attributes }
- assert_response :redirect
assert_redirected_to preferences_path
follow_redirect!
assert_template :show
# Changing to the default editor should work
user.preferred_editor = "default"
put preferences_path, :params => { :user => user.attributes }
- assert_response :redirect
assert_redirected_to preferences_path
follow_redirect!
assert_template :show