{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/comments/165490874","pull_request_review_id":93441485,"id":165490874,"diff_hunk":"@@ -0,0 +1,113 @@\n+require 'rails_helper'\n+\n+RSpec.describe AccessionNumbersController, type: :controller do\n+  before(:each) do\n+    stub_current_user(FactoryGirl.create(:authorized_user))\n+    @accession_number = FactoryGirl.create(:accession_number)\n+    @zvc_number = FactoryGirl.create(:zvc_number)\n+  end\n+\n+  describe 'get#index' do\n+    it 'be succesful returning the index page' do\n+      get :index\n+      expect(response).to be_successful\n+    end\n+  end\n+\n+  describe 'get#new' do\n+    it 'renders the correct template' do\n+      get 'new'\n+      expect(response).to render_template('new')\n+    end\n+  end\n+\n+  describe 'post#create' do\n+    it 'redirects to the created accession number on success' do\n+      post :create, accession_number: { resource_type: 'Sound Recordings',","path":"spec/controllers/accession_numbers_controller_spec.rb","position":26,"original_position":26,"commit_id":"7b09b85c954f68a8e6a64fe8d28610b428b3ab3c","original_commit_id":"7b09b85c954f68a8e6a64fe8d28610b428b3ab3c","user":{"login":"shelleydoljack","id":6343464,"avatar_url":"https://avatars2.githubusercontent.com/u/6343464?v=4","gravatar_id":"","url":"https://api.github.com/users/shelleydoljack","html_url":"https://github.com/shelleydoljack","followers_url":"https://api.github.com/users/shelleydoljack/followers","following_url":"https://api.github.com/users/shelleydoljack/following{/other_user}","gists_url":"https://api.github.com/users/shelleydoljack/gists{/gist_id}","starred_url":"https://api.github.com/users/shelleydoljack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelleydoljack/subscriptions","organizations_url":"https://api.github.com/users/shelleydoljack/orgs","repos_url":"https://api.github.com/users/shelleydoljack/repos","events_url":"https://api.github.com/users/shelleydoljack/events{/privacy}","received_events_url":"https://api.github.com/users/shelleydoljack/received_events","type":"User","site_admin":false},"body":"@jgreben This looks like a rails 5 thing yet we are not using rails 5 for this project.","created_at":"2018-02-01T21:20:23Z","updated_at":"2018-02-01T21:20:23Z","html_url":"https://github.com/sul-dlss/libsys-webforms/pull/440#discussion_r165490874","pull_request_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/comments/165490874"},"html":{"href":"https://github.com/sul-dlss/libsys-webforms/pull/440#discussion_r165490874"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440"}},"in_reply_to_id":165240041},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440","id":166423223,"html_url":"https://github.com/sul-dlss/libsys-webforms/pull/440","diff_url":"https://github.com/sul-dlss/libsys-webforms/pull/440.diff","patch_url":"https://github.com/sul-dlss/libsys-webforms/pull/440.patch","issue_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/440","number":440,"state":"open","locked":false,"title":"Adds accession number generator pages.","user":{"login":"shelleydoljack","id":6343464,"avatar_url":"https://avatars2.githubusercontent.com/u/6343464?v=4","gravatar_id":"","url":"https://api.github.com/users/shelleydoljack","html_url":"https://github.com/shelleydoljack","followers_url":"https://api.github.com/users/shelleydoljack/followers","following_url":"https://api.github.com/users/shelleydoljack/following{/other_user}","gists_url":"https://api.github.com/users/shelleydoljack/gists{/gist_id}","starred_url":"https://api.github.com/users/shelleydoljack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelleydoljack/subscriptions","organizations_url":"https://api.github.com/users/shelleydoljack/orgs","repos_url":"https://api.github.com/users/shelleydoljack/repos","events_url":"https://api.github.com/users/shelleydoljack/events{/privacy}","received_events_url":"https://api.github.com/users/shelleydoljack/received_events","type":"User","site_admin":false},"body":"Fixes #373 ","created_at":"2018-02-01T01:42:32Z","updated_at":"2018-02-01T21:20:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6b4fa0600fab0bd55926ac41505dc10f90724d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/440/comments","statuses_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/statuses/7b09b85c954f68a8e6a64fe8d28610b428b3ab3c","head":{"label":"sul-dlss:accession-numbers","ref":"accession-numbers","sha":"7b09b85c954f68a8e6a64fe8d28610b428b3ab3c","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars1.githubusercontent.com/u/230583?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":50386734,"name":"libsys-webforms","full_name":"sul-dlss/libsys-webforms","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars1.githubusercontent.com/u/230583?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/libsys-webforms","description":"Rails applications for various Symphony reporting & updating tools.","fork":false,"url":"https://api.github.com/repos/sul-dlss/libsys-webforms","forks_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/forks","keys_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/teams","hooks_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/events","assignees_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/tags","blobs_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/subscription","commits_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/merges","archive_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/downloads","issues_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/releases{/id}","deployments_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/deployments","created_at":"2016-01-25T22:50:20Z","updated_at":"2017-01-31T08:42:12Z","pushed_at":"2018-02-01T16:31:37Z","git_url":"git://github.com/sul-dlss/libsys-webforms.git","ssh_url":"git@github.com:sul-dlss/libsys-webforms.git","clone_url":"https://github.com/sul-dlss/libsys-webforms.git","svn_url":"https://github.com/sul-dlss/libsys-webforms","homepage":"","size":719,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":36,"license":null,"forks":0,"open_issues":36,"watchers":1,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"ab768947607703995b1f7d4f51c113e8cad683c7","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars1.githubusercontent.com/u/230583?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":50386734,"name":"libsys-webforms","full_name":"sul-dlss/libsys-webforms","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars1.githubusercontent.com/u/230583?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/libsys-webforms","description":"Rails applications for various Symphony reporting & updating tools.","fork":false,"url":"https://api.github.com/repos/sul-dlss/libsys-webforms","forks_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/forks","keys_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/teams","hooks_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/events","assignees_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/tags","blobs_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/subscription","commits_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/merges","archive_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/downloads","issues_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/releases{/id}","deployments_url":"https://api.github.com/repos/sul-dlss/libsys-webforms/deployments","created_at":"2016-01-25T22:50:20Z","updated_at":"2017-01-31T08:42:12Z","pushed_at":"2018-02-01T16:31:37Z","git_url":"git://github.com/sul-dlss/libsys-webforms.git","ssh_url":"git@github.com:sul-dlss/libsys-webforms.git","clone_url":"https://github.com/sul-dlss/libsys-webforms.git","svn_url":"https://github.com/sul-dlss/libsys-webforms","homepage":"","size":719,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":36,"license":null,"forks":0,"open_issues":36,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440"},"html":{"href":"https://github.com/sul-dlss/libsys-webforms/pull/440"},"issue":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/440"},"comments":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/libsys-webforms/statuses/7b09b85c954f68a8e6a64fe8d28610b428b3ab3c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"shelleydoljack"}}