# Test editing a specific note
def test_edit_with_note
user = users(:public_user)
- note = notes(:open_note)
+ note = create(:note)
+ create(:note_comment, :author_id => user.id)
get :edit, { :note => note.id }, { :user => user.id }
assert_response :success