{"action":"created","comment":{"url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/comments/60858841","id":60858841,"diff_hunk":"@@ -0,0 +1,34 @@\n+require 'test_helper'\n+\n+class NoteCreationTest < ActionDispatch::IntegrationTest\n+  before do\n+    @user = create :user\n+    log_in_as @user\n+    @patient = create :patient\n+    @pregnancy = create :pregnancy, patient: @patient\n+    visit edit_pregnancy_path(@pregnancy)\n+  end\n+ \n+  describe 'add patient pregnancy notes' do\n+    it 'should display a case notes form and current notes' do\n+        click_link 'Notes'\n+        \n+        visit current_path ","path":"test/integration/note_creation_test.rb","position":16,"original_position":16,"commit_id":"75b733aebe25ff0a3a62e231f2f9146730d443d0","original_commit_id":"75b733aebe25ff0a3a62e231f2f9146730d443d0","user":{"login":"colinxfleming","id":3866868,"avatar_url":"https://avatars.githubusercontent.com/u/3866868?v=3","gravatar_id":"","url":"https://api.github.com/users/colinxfleming","html_url":"https://github.com/colinxfleming","followers_url":"https://api.github.com/users/colinxfleming/followers","following_url":"https://api.github.com/users/colinxfleming/following{/other_user}","gists_url":"https://api.github.com/users/colinxfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/colinxfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinxfleming/subscriptions","organizations_url":"https://api.github.com/users/colinxfleming/orgs","repos_url":"https://api.github.com/users/colinxfleming/repos","events_url":"https://api.github.com/users/colinxfleming/events{/privacy}","received_events_url":"https://api.github.com/users/colinxfleming/received_events","type":"User","site_admin":false},"body":"IIRC the controller action currently redirects to the view -- is it possible to take out the `visit current_path` here? ","created_at":"2016-04-25T02:49:42Z","updated_at":"2016-04-25T02:49:42Z","html_url":"https://github.com/colinxfleming/dcaf_case_management/pull/254#discussion_r60858841","pull_request_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254","_links":{"self":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/comments/60858841"},"html":{"href":"https://github.com/colinxfleming/dcaf_case_management/pull/254#discussion_r60858841"},"pull_request":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254"}}},"pull_request":{"url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254","id":67645587,"html_url":"https://github.com/colinxfleming/dcaf_case_management/pull/254","diff_url":"https://github.com/colinxfleming/dcaf_case_management/pull/254.diff","patch_url":"https://github.com/colinxfleming/dcaf_case_management/pull/254.patch","issue_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues/254","number":254,"state":"open","locked":false,"title":"Add note creation integration test","user":{"login":"edwardpark","id":7883907,"avatar_url":"https://avatars.githubusercontent.com/u/7883907?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardpark","html_url":"https://github.com/edwardpark","followers_url":"https://api.github.com/users/edwardpark/followers","following_url":"https://api.github.com/users/edwardpark/following{/other_user}","gists_url":"https://api.github.com/users/edwardpark/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardpark/subscriptions","organizations_url":"https://api.github.com/users/edwardpark/orgs","repos_url":"https://api.github.com/users/edwardpark/repos","events_url":"https://api.github.com/users/edwardpark/events{/privacy}","received_events_url":"https://api.github.com/users/edwardpark/received_events","type":"User","site_admin":false},"body":"This pull request makes the following changes:\r\n* Adds a case note creation integration test \r\n\r\n\r\nIt relates to the following issue #s: \r\n* 209\r\n* 193\r\n","created_at":"2016-04-24T18:33:44Z","updated_at":"2016-04-25T02:49:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d058005dc9f15bdbd3d5d73f0ad4e53940d127b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254/commits","review_comments_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254/comments","review_comment_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/comments{/number}","comments_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues/254/comments","statuses_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/statuses/75b733aebe25ff0a3a62e231f2f9146730d443d0","head":{"label":"edwardpark:note_creation_test","ref":"note_creation_test","sha":"75b733aebe25ff0a3a62e231f2f9146730d443d0","user":{"login":"edwardpark","id":7883907,"avatar_url":"https://avatars.githubusercontent.com/u/7883907?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardpark","html_url":"https://github.com/edwardpark","followers_url":"https://api.github.com/users/edwardpark/followers","following_url":"https://api.github.com/users/edwardpark/following{/other_user}","gists_url":"https://api.github.com/users/edwardpark/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardpark/subscriptions","organizations_url":"https://api.github.com/users/edwardpark/orgs","repos_url":"https://api.github.com/users/edwardpark/repos","events_url":"https://api.github.com/users/edwardpark/events{/privacy}","received_events_url":"https://api.github.com/users/edwardpark/received_events","type":"User","site_admin":false},"repo":{"id":54431615,"name":"dcaf_case_management","full_name":"edwardpark/dcaf_case_management","owner":{"login":"edwardpark","id":7883907,"avatar_url":"https://avatars.githubusercontent.com/u/7883907?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardpark","html_url":"https://github.com/edwardpark","followers_url":"https://api.github.com/users/edwardpark/followers","following_url":"https://api.github.com/users/edwardpark/following{/other_user}","gists_url":"https://api.github.com/users/edwardpark/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardpark/subscriptions","organizations_url":"https://api.github.com/users/edwardpark/orgs","repos_url":"https://api.github.com/users/edwardpark/repos","events_url":"https://api.github.com/users/edwardpark/events{/privacy}","received_events_url":"https://api.github.com/users/edwardpark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edwardpark/dcaf_case_management","description":"Rails-based case management system for the DC Abortion Fund","fork":true,"url":"https://api.github.com/repos/edwardpark/dcaf_case_management","forks_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/forks","keys_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/teams","hooks_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/hooks","issue_events_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/issues/events{/number}","events_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/events","assignees_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/assignees{/user}","branches_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/branches{/branch}","tags_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/tags","blobs_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/git/refs{/sha}","trees_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/statuses/{sha}","languages_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/languages","stargazers_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/stargazers","contributors_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/contributors","subscribers_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/subscribers","subscription_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/subscription","commits_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/commits{/sha}","git_commits_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/git/commits{/sha}","comments_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/comments{/number}","issue_comment_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/issues/comments{/number}","contents_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/contents/{+path}","compare_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/merges","archive_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/downloads","issues_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/issues{/number}","pulls_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/pulls{/number}","milestones_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/milestones{/number}","notifications_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/labels{/name}","releases_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/releases{/id}","deployments_url":"https://api.github.com/repos/edwardpark/dcaf_case_management/deployments","created_at":"2016-03-22T00:01:20Z","updated_at":"2016-03-22T00:01:21Z","pushed_at":"2016-04-24T18:31:50Z","git_url":"git://github.com/edwardpark/dcaf_case_management.git","ssh_url":"git@github.com:edwardpark/dcaf_case_management.git","clone_url":"https://github.com/edwardpark/dcaf_case_management.git","svn_url":"https://github.com/edwardpark/dcaf_case_management","homepage":"","size":7465,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"colinxfleming:master","ref":"master","sha":"40c73865b62ffb8f557005d920dd7f53188156e6","user":{"login":"colinxfleming","id":3866868,"avatar_url":"https://avatars.githubusercontent.com/u/3866868?v=3","gravatar_id":"","url":"https://api.github.com/users/colinxfleming","html_url":"https://github.com/colinxfleming","followers_url":"https://api.github.com/users/colinxfleming/followers","following_url":"https://api.github.com/users/colinxfleming/following{/other_user}","gists_url":"https://api.github.com/users/colinxfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/colinxfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinxfleming/subscriptions","organizations_url":"https://api.github.com/users/colinxfleming/orgs","repos_url":"https://api.github.com/users/colinxfleming/repos","events_url":"https://api.github.com/users/colinxfleming/events{/privacy}","received_events_url":"https://api.github.com/users/colinxfleming/received_events","type":"User","site_admin":false},"repo":{"id":43036761,"name":"dcaf_case_management","full_name":"colinxfleming/dcaf_case_management","owner":{"login":"colinxfleming","id":3866868,"avatar_url":"https://avatars.githubusercontent.com/u/3866868?v=3","gravatar_id":"","url":"https://api.github.com/users/colinxfleming","html_url":"https://github.com/colinxfleming","followers_url":"https://api.github.com/users/colinxfleming/followers","following_url":"https://api.github.com/users/colinxfleming/following{/other_user}","gists_url":"https://api.github.com/users/colinxfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/colinxfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinxfleming/subscriptions","organizations_url":"https://api.github.com/users/colinxfleming/orgs","repos_url":"https://api.github.com/users/colinxfleming/repos","events_url":"https://api.github.com/users/colinxfleming/events{/privacy}","received_events_url":"https://api.github.com/users/colinxfleming/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/colinxfleming/dcaf_case_management","description":"Rails-based case management system for the DC Abortion Fund","fork":false,"url":"https://api.github.com/repos/colinxfleming/dcaf_case_management","forks_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/forks","keys_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/teams","hooks_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/hooks","issue_events_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues/events{/number}","events_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/events","assignees_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/assignees{/user}","branches_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/branches{/branch}","tags_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/tags","blobs_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/git/refs{/sha}","trees_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/statuses/{sha}","languages_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/languages","stargazers_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/stargazers","contributors_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/contributors","subscribers_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/subscribers","subscription_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/subscription","commits_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/commits{/sha}","git_commits_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/git/commits{/sha}","comments_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/comments{/number}","issue_comment_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues/comments{/number}","contents_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/contents/{+path}","compare_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/merges","archive_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/downloads","issues_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues{/number}","pulls_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls{/number}","milestones_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/milestones{/number}","notifications_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/labels{/name}","releases_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/releases{/id}","deployments_url":"https://api.github.com/repos/colinxfleming/dcaf_case_management/deployments","created_at":"2015-09-24T01:19:39Z","updated_at":"2016-03-29T01:03:36Z","pushed_at":"2016-04-24T18:33:45Z","git_url":"git://github.com/colinxfleming/dcaf_case_management.git","ssh_url":"git@github.com:colinxfleming/dcaf_case_management.git","clone_url":"https://github.com/colinxfleming/dcaf_case_management.git","svn_url":"https://github.com/colinxfleming/dcaf_case_management","homepage":"","size":7468,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":60,"forks":24,"open_issues":60,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254"},"html":{"href":"https://github.com/colinxfleming/dcaf_case_management/pull/254"},"issue":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues/254"},"comments":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/issues/254/comments"},"review_comments":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254/comments"},"review_comment":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/pulls/254/commits"},"statuses":{"href":"https://api.github.com/repos/colinxfleming/dcaf_case_management/statuses/75b733aebe25ff0a3a62e231f2f9146730d443d0"}}}}