{"action":"created","comment":{"url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/comments/44742017","id":44742017,"diff_hunk":"@@ -7,34 +7,36 @@ class LawyersControllerTest < ActionController::TestCase\n     assert_response :ok\n   end\n \n-  test 'POST create makes an unapproved lawyer with a random password' do\n+  test 'POST create makes an unapproved lawyer with a random password and notifies lawyer' do\n     password = 'blabla'\n \n     assert_difference 'Lawyer.count', +1 do\n-      post(:create, lawyer: {\n-        email: 'bouke@test.nl',\n-        password: password,\n-        approved: true,\n-        name: 'Bouke van der Bijl',\n-        address1: 'Netherlands 1',\n-        city: 'Amsterdam',\n-        province: 'North Holland',\n-        telephone: '0612123817',\n-        employer_name: 'Zijne Majesteit',\n-        employer_address: 'Oranjestraat 1',\n-        employment_type: 'Court',\n-        practicing: '1',\n-        year_of_call: '1900',\n-        law_society: 'LSUC',\n-        areas_of_practice: ['Environment'],\n-        language_of_practice: 'Dutch',\n-        experience_with_refugee_sponsorships: '0',\n-        experience_with_refugee_sponsorships_clarification: '',\n-        insurance: 'No',\n-        can_accomodate_meetings: '1',\n-        areas_of_interest: ['Providing ongoing assistance to sponsors through SSP matching'],\n-        comments: ''\n-      })\n+      assert_difference 'ActionMailer::Base.deliveries.size', +1 do\n+        post(:create, lawyer: {\n+          email: 'bouke@test.nl',","path":"test/controllers/lawyers_controller_test.rb","position":35,"original_position":35,"commit_id":"37397499a15814b74c51cfbd02997466dccaf94f","original_commit_id":"37397499a15814b74c51cfbd02997466dccaf94f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.","created_at":"2015-11-13T01:49:33Z","updated_at":"2015-11-13T01:49:33Z","html_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP/pull/52#discussion_r44742017","pull_request_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/comments/44742017"},"html":{"href":"https://github.com/OttawaU-RSSP/OttawaU-RSSP/pull/52#discussion_r44742017"},"pull_request":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52","id":50594999,"html_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP/pull/52","diff_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP/pull/52.diff","patch_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP/pull/52.patch","issue_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/52","number":52,"state":"open","locked":false,"title":"Content updates","user":{"login":"kwestein","id":3518990,"avatar_url":"https://avatars.githubusercontent.com/u/3518990?v=3","gravatar_id":"","url":"https://api.github.com/users/kwestein","html_url":"https://github.com/kwestein","followers_url":"https://api.github.com/users/kwestein/followers","following_url":"https://api.github.com/users/kwestein/following{/other_user}","gists_url":"https://api.github.com/users/kwestein/gists{/gist_id}","starred_url":"https://api.github.com/users/kwestein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwestein/subscriptions","organizations_url":"https://api.github.com/users/kwestein/orgs","repos_url":"https://api.github.com/users/kwestein/repos","events_url":"https://api.github.com/users/kwestein/events{/privacy}","received_events_url":"https://api.github.com/users/kwestein/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-13T01:49:26Z","updated_at":"2015-11-13T01:49:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25cc29a58c32691cd429f9f5fc807d1ead1c6262","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52/commits","review_comments_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52/comments","review_comment_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/52/comments","statuses_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/statuses/37397499a15814b74c51cfbd02997466dccaf94f","head":{"label":"OttawaU-RSSP:emails","ref":"emails","sha":"37397499a15814b74c51cfbd02997466dccaf94f","user":{"login":"OttawaU-RSSP","id":15145373,"avatar_url":"https://avatars.githubusercontent.com/u/15145373?v=3","gravatar_id":"","url":"https://api.github.com/users/OttawaU-RSSP","html_url":"https://github.com/OttawaU-RSSP","followers_url":"https://api.github.com/users/OttawaU-RSSP/followers","following_url":"https://api.github.com/users/OttawaU-RSSP/following{/other_user}","gists_url":"https://api.github.com/users/OttawaU-RSSP/gists{/gist_id}","starred_url":"https://api.github.com/users/OttawaU-RSSP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OttawaU-RSSP/subscriptions","organizations_url":"https://api.github.com/users/OttawaU-RSSP/orgs","repos_url":"https://api.github.com/users/OttawaU-RSSP/repos","events_url":"https://api.github.com/users/OttawaU-RSSP/events{/privacy}","received_events_url":"https://api.github.com/users/OttawaU-RSSP/received_events","type":"Organization","site_admin":false},"repo":{"id":44281969,"name":"OttawaU-RSSP","full_name":"OttawaU-RSSP/OttawaU-RSSP","owner":{"login":"OttawaU-RSSP","id":15145373,"avatar_url":"https://avatars.githubusercontent.com/u/15145373?v=3","gravatar_id":"","url":"https://api.github.com/users/OttawaU-RSSP","html_url":"https://github.com/OttawaU-RSSP","followers_url":"https://api.github.com/users/OttawaU-RSSP/followers","following_url":"https://api.github.com/users/OttawaU-RSSP/following{/other_user}","gists_url":"https://api.github.com/users/OttawaU-RSSP/gists{/gist_id}","starred_url":"https://api.github.com/users/OttawaU-RSSP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OttawaU-RSSP/subscriptions","organizations_url":"https://api.github.com/users/OttawaU-RSSP/orgs","repos_url":"https://api.github.com/users/OttawaU-RSSP/repos","events_url":"https://api.github.com/users/OttawaU-RSSP/events{/privacy}","received_events_url":"https://api.github.com/users/OttawaU-RSSP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP","description":"Refugee Sponsorship Support Program","fork":false,"url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP","forks_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/forks","keys_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/teams","hooks_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/hooks","issue_events_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/events{/number}","events_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/events","assignees_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/assignees{/user}","branches_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/branches{/branch}","tags_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/tags","blobs_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/refs{/sha}","trees_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/statuses/{sha}","languages_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/languages","stargazers_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/stargazers","contributors_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/contributors","subscribers_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/subscribers","subscription_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/subscription","commits_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/commits{/sha}","git_commits_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/commits{/sha}","comments_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/comments{/number}","issue_comment_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/comments{/number}","contents_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/contents/{+path}","compare_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/merges","archive_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/downloads","issues_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues{/number}","pulls_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls{/number}","milestones_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/milestones{/number}","notifications_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/labels{/name}","releases_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/releases{/id}","created_at":"2015-10-14T23:28:12Z","updated_at":"2015-10-15T16:46:42Z","pushed_at":"2015-11-13T01:49:26Z","git_url":"git://github.com/OttawaU-RSSP/OttawaU-RSSP.git","ssh_url":"git@github.com:OttawaU-RSSP/OttawaU-RSSP.git","clone_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP.git","svn_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP","homepage":null,"size":34200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"OttawaU-RSSP:master","ref":"master","sha":"b2785e935e48d463e20571f7b208c093b2fcfb75","user":{"login":"OttawaU-RSSP","id":15145373,"avatar_url":"https://avatars.githubusercontent.com/u/15145373?v=3","gravatar_id":"","url":"https://api.github.com/users/OttawaU-RSSP","html_url":"https://github.com/OttawaU-RSSP","followers_url":"https://api.github.com/users/OttawaU-RSSP/followers","following_url":"https://api.github.com/users/OttawaU-RSSP/following{/other_user}","gists_url":"https://api.github.com/users/OttawaU-RSSP/gists{/gist_id}","starred_url":"https://api.github.com/users/OttawaU-RSSP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OttawaU-RSSP/subscriptions","organizations_url":"https://api.github.com/users/OttawaU-RSSP/orgs","repos_url":"https://api.github.com/users/OttawaU-RSSP/repos","events_url":"https://api.github.com/users/OttawaU-RSSP/events{/privacy}","received_events_url":"https://api.github.com/users/OttawaU-RSSP/received_events","type":"Organization","site_admin":false},"repo":{"id":44281969,"name":"OttawaU-RSSP","full_name":"OttawaU-RSSP/OttawaU-RSSP","owner":{"login":"OttawaU-RSSP","id":15145373,"avatar_url":"https://avatars.githubusercontent.com/u/15145373?v=3","gravatar_id":"","url":"https://api.github.com/users/OttawaU-RSSP","html_url":"https://github.com/OttawaU-RSSP","followers_url":"https://api.github.com/users/OttawaU-RSSP/followers","following_url":"https://api.github.com/users/OttawaU-RSSP/following{/other_user}","gists_url":"https://api.github.com/users/OttawaU-RSSP/gists{/gist_id}","starred_url":"https://api.github.com/users/OttawaU-RSSP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OttawaU-RSSP/subscriptions","organizations_url":"https://api.github.com/users/OttawaU-RSSP/orgs","repos_url":"https://api.github.com/users/OttawaU-RSSP/repos","events_url":"https://api.github.com/users/OttawaU-RSSP/events{/privacy}","received_events_url":"https://api.github.com/users/OttawaU-RSSP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP","description":"Refugee Sponsorship Support Program","fork":false,"url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP","forks_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/forks","keys_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/teams","hooks_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/hooks","issue_events_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/events{/number}","events_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/events","assignees_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/assignees{/user}","branches_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/branches{/branch}","tags_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/tags","blobs_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/refs{/sha}","trees_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/statuses/{sha}","languages_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/languages","stargazers_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/stargazers","contributors_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/contributors","subscribers_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/subscribers","subscription_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/subscription","commits_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/commits{/sha}","git_commits_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/git/commits{/sha}","comments_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/comments{/number}","issue_comment_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/comments{/number}","contents_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/contents/{+path}","compare_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/merges","archive_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/downloads","issues_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues{/number}","pulls_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls{/number}","milestones_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/milestones{/number}","notifications_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/labels{/name}","releases_url":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/releases{/id}","created_at":"2015-10-14T23:28:12Z","updated_at":"2015-10-15T16:46:42Z","pushed_at":"2015-11-13T01:49:26Z","git_url":"git://github.com/OttawaU-RSSP/OttawaU-RSSP.git","ssh_url":"git@github.com:OttawaU-RSSP/OttawaU-RSSP.git","clone_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP.git","svn_url":"https://github.com/OttawaU-RSSP/OttawaU-RSSP","homepage":null,"size":34200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52"},"html":{"href":"https://github.com/OttawaU-RSSP/OttawaU-RSSP/pull/52"},"issue":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/52"},"comments":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/OttawaU-RSSP/OttawaU-RSSP/statuses/37397499a15814b74c51cfbd02997466dccaf94f"}}}}