Exercise 9.6.1: Add a test case by issuing a PATCH request directly to /users/17?admin=1, verify that the admin attribute isn’t editable through the web
Exercise 9.6.2: Arrange for the Gravatar “change” lin3 to open in a new window (or tab)
Exercise 9.6.3: Add tests to make sure that links such as 'Profile' or 'Settings' don’t appear when a user isn’t signed in
Exercise 9.6.4: Use the sign_in test helper in as many places as you can find
Exercise 9.6.5: Remove the duplicated form code by refactoring the new.html.erb and edit.html.erb views to use partial _fields.html.erb

Note you will have to pass the form variable f explicitly as a local variable ('<%= render 'fields', f: f %>')