{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/30468408","id":30468408,"diff_hunk":"@@ -0,0 +1,19 @@\n+require 'rails_helper' \n+\n+describe 'hq/admin_users/new.html.erb', type: :view do\n+\n+  before :each do\n+    assign :admin_user, build_stubbed(:admin_user)\n+  end\n+\n+  it 'renders the form' do\n+    render\n+    expect(view).to render_template(:new)\n+  end\n+\n+  it 'cancel button goes to index page' do\n+    render\n+    expect(rendered).to have_link('Cancel', href: hq_admin_users_path)\n+  end\n+\n+end","path":"spec/views/hq/admin_users/new.html.erb_spec.rb","position":19,"original_position":19,"commit_id":"fe7705c666617e31ea0593df6695122c607fd4aa","original_commit_id":"fe7705c666617e31ea0593df6695122c607fd4aa","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"Should we also test that the view has a form, has all the 3 input fields and has a submit button?","created_at":"2015-05-17T08:21:54Z","updated_at":"2015-05-17T08:21:54Z","html_url":"https://github.com/AgileVentures/osra/pull/373#discussion_r30468408","pull_request_url":"https://api.github.com/repos/AgileVentures/osra/pulls/373","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/30468408"},"html":{"href":"https://github.com/AgileVentures/osra/pull/373#discussion_r30468408"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/373"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/osra/pulls/373","id":35576095,"html_url":"https://github.com/AgileVentures/osra/pull/373","diff_url":"https://github.com/AgileVentures/osra/pull/373.diff","patch_url":"https://github.com/AgileVentures/osra/pull/373.patch","issue_url":"https://api.github.com/repos/AgileVentures/osra/issues/373","number":373,"state":"open","locked":false,"title":"OSRA408 AdminUser #new and #create done, plus small fixes to #index","user":{"login":"robbiejackson","id":5058681,"avatar_url":"https://avatars.githubusercontent.com/u/5058681?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiejackson","html_url":"https://github.com/robbiejackson","followers_url":"https://api.github.com/users/robbiejackson/followers","following_url":"https://api.github.com/users/robbiejackson/following{/other_user}","gists_url":"https://api.github.com/users/robbiejackson/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiejackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiejackson/subscriptions","organizations_url":"https://api.github.com/users/robbiejackson/orgs","repos_url":"https://api.github.com/users/robbiejackson/repos","events_url":"https://api.github.com/users/robbiejackson/events{/privacy}","received_events_url":"https://api.github.com/users/robbiejackson/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-16T19:38:43Z","updated_at":"2015-05-17T08:21:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"147dcd65d10de625e2efc8ac494302a334a83ceb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/osra/pulls/373/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/osra/pulls/373/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/osra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/osra/issues/373/comments","statuses_url":"https://api.github.com/repos/AgileVentures/osra/statuses/fe7705c666617e31ea0593df6695122c607fd4aa","head":{"label":"robbiejackson:osra408-adminuser-new-and-create","ref":"osra408-adminuser-new-and-create","sha":"fe7705c666617e31ea0593df6695122c607fd4aa","user":{"login":"robbiejackson","id":5058681,"avatar_url":"https://avatars.githubusercontent.com/u/5058681?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiejackson","html_url":"https://github.com/robbiejackson","followers_url":"https://api.github.com/users/robbiejackson/followers","following_url":"https://api.github.com/users/robbiejackson/following{/other_user}","gists_url":"https://api.github.com/users/robbiejackson/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiejackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiejackson/subscriptions","organizations_url":"https://api.github.com/users/robbiejackson/orgs","repos_url":"https://api.github.com/users/robbiejackson/repos","events_url":"https://api.github.com/users/robbiejackson/events{/privacy}","received_events_url":"https://api.github.com/users/robbiejackson/received_events","type":"User","site_admin":false},"repo":{"id":27240806,"name":"osra","full_name":"robbiejackson/osra","owner":{"login":"robbiejackson","id":5058681,"avatar_url":"https://avatars.githubusercontent.com/u/5058681?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiejackson","html_url":"https://github.com/robbiejackson","followers_url":"https://api.github.com/users/robbiejackson/followers","following_url":"https://api.github.com/users/robbiejackson/following{/other_user}","gists_url":"https://api.github.com/users/robbiejackson/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiejackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiejackson/subscriptions","organizations_url":"https://api.github.com/users/robbiejackson/orgs","repos_url":"https://api.github.com/users/robbiejackson/repos","events_url":"https://api.github.com/users/robbiejackson/events{/privacy}","received_events_url":"https://api.github.com/users/robbiejackson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbiejackson/osra","description":"Sponsor orphans in Syria & insure basic life & education requirements for Syrian children","fork":true,"url":"https://api.github.com/repos/robbiejackson/osra","forks_url":"https://api.github.com/repos/robbiejackson/osra/forks","keys_url":"https://api.github.com/repos/robbiejackson/osra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbiejackson/osra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbiejackson/osra/teams","hooks_url":"https://api.github.com/repos/robbiejackson/osra/hooks","issue_events_url":"https://api.github.com/repos/robbiejackson/osra/issues/events{/number}","events_url":"https://api.github.com/repos/robbiejackson/osra/events","assignees_url":"https://api.github.com/repos/robbiejackson/osra/assignees{/user}","branches_url":"https://api.github.com/repos/robbiejackson/osra/branches{/branch}","tags_url":"https://api.github.com/repos/robbiejackson/osra/tags","blobs_url":"https://api.github.com/repos/robbiejackson/osra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbiejackson/osra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbiejackson/osra/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbiejackson/osra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbiejackson/osra/statuses/{sha}","languages_url":"https://api.github.com/repos/robbiejackson/osra/languages","stargazers_url":"https://api.github.com/repos/robbiejackson/osra/stargazers","contributors_url":"https://api.github.com/repos/robbiejackson/osra/contributors","subscribers_url":"https://api.github.com/repos/robbiejackson/osra/subscribers","subscription_url":"https://api.github.com/repos/robbiejackson/osra/subscription","commits_url":"https://api.github.com/repos/robbiejackson/osra/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbiejackson/osra/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbiejackson/osra/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbiejackson/osra/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbiejackson/osra/contents/{+path}","compare_url":"https://api.github.com/repos/robbiejackson/osra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbiejackson/osra/merges","archive_url":"https://api.github.com/repos/robbiejackson/osra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbiejackson/osra/downloads","issues_url":"https://api.github.com/repos/robbiejackson/osra/issues{/number}","pulls_url":"https://api.github.com/repos/robbiejackson/osra/pulls{/number}","milestones_url":"https://api.github.com/repos/robbiejackson/osra/milestones{/number}","notifications_url":"https://api.github.com/repos/robbiejackson/osra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbiejackson/osra/labels{/name}","releases_url":"https://api.github.com/repos/robbiejackson/osra/releases{/id}","created_at":"2014-11-27T20:45:12Z","updated_at":"2015-01-05T15:58:13Z","pushed_at":"2015-05-16T20:19:27Z","git_url":"git://github.com/robbiejackson/osra.git","ssh_url":"git@github.com:robbiejackson/osra.git","clone_url":"https://github.com/robbiejackson/osra.git","svn_url":"https://github.com/robbiejackson/osra","homepage":null,"size":2044,"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":"develop"}},"base":{"label":"AgileVentures:develop","ref":"develop","sha":"05ad13dd1681bba90b55302b449839905c66546b","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":18855271,"name":"osra","full_name":"AgileVentures/osra","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/osra","description":"Sponsor orphans in Syria & ensure basic life & education requirements for Syrian children","fork":false,"url":"https://api.github.com/repos/AgileVentures/osra","forks_url":"https://api.github.com/repos/AgileVentures/osra/forks","keys_url":"https://api.github.com/repos/AgileVentures/osra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/osra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/osra/teams","hooks_url":"https://api.github.com/repos/AgileVentures/osra/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/osra/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/osra/events","assignees_url":"https://api.github.com/repos/AgileVentures/osra/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/osra/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/osra/tags","blobs_url":"https://api.github.com/repos/AgileVentures/osra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/osra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/osra/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/osra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/osra/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/osra/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/osra/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/osra/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/osra/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/osra/subscription","commits_url":"https://api.github.com/repos/AgileVentures/osra/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/osra/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/osra/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/osra/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/osra/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/osra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/osra/merges","archive_url":"https://api.github.com/repos/AgileVentures/osra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/osra/downloads","issues_url":"https://api.github.com/repos/AgileVentures/osra/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/osra/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/osra/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/osra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/osra/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/osra/releases{/id}","created_at":"2014-04-16T20:43:09Z","updated_at":"2015-05-07T21:19:07Z","pushed_at":"2015-05-16T22:07:21Z","git_url":"git://github.com/AgileVentures/osra.git","ssh_url":"git@github.com:AgileVentures/osra.git","clone_url":"https://github.com/AgileVentures/osra.git","svn_url":"https://github.com/AgileVentures/osra","homepage":"","size":6494,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":6,"forks":37,"open_issues":6,"watchers":11,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/373"},"html":{"href":"https://github.com/AgileVentures/osra/pull/373"},"issue":{"href":"https://api.github.com/repos/AgileVentures/osra/issues/373"},"comments":{"href":"https://api.github.com/repos/AgileVentures/osra/issues/373/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/373/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/373/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/osra/statuses/fe7705c666617e31ea0593df6695122c607fd4aa"}}}}