{"action":"created","issue":{"url":"https://api.github.com/repos/empirical-org/Empirical-Core/issues/414","labels_url":"https://api.github.com/repos/empirical-org/Empirical-Core/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/empirical-org/Empirical-Core/issues/414/comments","events_url":"https://api.github.com/repos/empirical-org/Empirical-Core/issues/414/events","html_url":"https://github.com/empirical-org/Empirical-Core/issues/414","id":46125410,"number":414,"title":"Require First and Last Name for Teachers","user":{"login":"RyanNovas","id":6655439,"avatar_url":"https://avatars.githubusercontent.com/u/6655439?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanNovas","html_url":"https://github.com/RyanNovas","followers_url":"https://api.github.com/users/RyanNovas/followers","following_url":"https://api.github.com/users/RyanNovas/following{/other_user}","gists_url":"https://api.github.com/users/RyanNovas/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanNovas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanNovas/subscriptions","organizations_url":"https://api.github.com/users/RyanNovas/orgs","repos_url":"https://api.github.com/users/RyanNovas/repos","events_url":"https://api.github.com/users/RyanNovas/events{/privacy}","received_events_url":"https://api.github.com/users/RyanNovas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/empirical-org/Empirical-Core/labels/1%20-%20Ready","name":"1 - Ready","color":"DCDCDC"},{"url":"https://api.github.com/repos/empirical-org/Empirical-Core/labels/Level:%20Starter","name":"Level: Starter","color":"207de5"},{"url":"https://api.github.com/repos/empirical-org/Empirical-Core/labels/new-contributor","name":"new-contributor","color":"bfe5bf"},{"url":"https://api.github.com/repos/empirical-org/Empirical-Core/labels/Ryan%20DRI","name":"Ryan DRI","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-10-17T17:47:59Z","updated_at":"2015-02-11T04:33:42Z","closed_at":null,"body":"Right now, teacher's are regularly putting in incomplete names. We want to have their full name, so we should split the Name Field into \"First Name\" and \"Last Name\" and then require both of them.\r\n\r\nAlso, as the teacher's name is student facing (they see it right on their profile) we should included a title field. This can have the options Mr., Miss, Mrs. Misses, Dr. and whatever else are standard ones. Then, we can display Mr. Smith instead of Tony Smith, which will probably be more appropriate for the students."},"comment":{"url":"https://api.github.com/repos/empirical-org/Empirical-Core/issues/comments/73833107","html_url":"https://github.com/empirical-org/Empirical-Core/issues/414#issuecomment-73833107","issue_url":"https://api.github.com/repos/empirical-org/Empirical-Core/issues/414","id":73833107,"user":{"login":"bobmazanec","id":2031462,"avatar_url":"https://avatars.githubusercontent.com/u/2031462?v=3","gravatar_id":"","url":"https://api.github.com/users/bobmazanec","html_url":"https://github.com/bobmazanec","followers_url":"https://api.github.com/users/bobmazanec/followers","following_url":"https://api.github.com/users/bobmazanec/following{/other_user}","gists_url":"https://api.github.com/users/bobmazanec/gists{/gist_id}","starred_url":"https://api.github.com/users/bobmazanec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobmazanec/subscriptions","organizations_url":"https://api.github.com/users/bobmazanec/orgs","repos_url":"https://api.github.com/users/bobmazanec/repos","events_url":"https://api.github.com/users/bobmazanec/events{/privacy}","received_events_url":"https://api.github.com/users/bobmazanec/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T04:33:42Z","updated_at":"2015-02-11T04:33:42Z","body":"From your description, I'd guess it's failing on\r\n\r\n    expect(response).to redirect_to(profile_path)\r\n\r\nHave you touched `user_params` at all?\r\n\r\nIf you haven't touched [`spec/support/helpers/session_helper.rb`](https://github.com/empirical-org/Empirical-Core/blob/develop/spec/support/helpers/session_helper.rb) or the `Hash`, I expect it's `POST`ing without (_i.e._, with `nil`) `first_name` param, which fails your validation instead of the usual \r\n[`redirect_to profile_path`](https://github.com/empirical-org/Empirical-Core/blob/develop/app/controllers/accounts_controller.rb#L27)"}}