{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/comments/61597784","id":61597784,"diff_hunk":"@@ -1,9 +1,33 @@\n-# Generated via\n-#  `rails generate curation_concerns:work GenericWork`\n require 'rails_helper'\n \n RSpec.describe CurationConcerns::GenericWorksController do\n-  it \"has tests\" do\n-    skip \"Add your tests here\"\n+  let(:user) { FactoryGirl.create(:user) }\n+  let(:work) { FactoryGirl.create(:work_with_one_file, user: user) }\n+  let(:file_set) { work.ordered_members.to_a.first }\n+  before do\n+    Hydra::Works::AddFileToFileSet.call(file_set,\n+                                        fixture_file('world.png'),\n+                                        :original_file)\n+  end\n+  describe '#manifest' do\n+    before do\n+      sign_in user\n+    end\n+    it \"produces a manifest\" do\n+      get :manifest, id: work, format: :json\n+      expect(response.body).to eq \"{\\\"@context\\\":\\\"http://iiif.io/api/presentation/2/context.json\\\",\" \\\n+        \"\\\"@id\\\":\\\"http://test.com/concern/generic_works/#{work.id}/manifest\\\",\" \\\n+        \"\\\"@type\\\":\\\"sc:Manifest\\\",\" \\\n+        \"\\\"label\\\":\\\"Test title\\\",\" \\\n+        \"\\\"viewingHint\\\":\\\"individuals\\\",\" \\\n+        \"\\\"sequences\\\":[\" \\\n+          \"{\\\"@id\\\":\\\"http://test.com/concern/generic_works/#{work.id}/manifest/sequence/normal\\\",\\\"@type\\\":\\\"sc:Sequence\\\",\" \\\n+            \"\\\"canvases\\\":[{\\\"@id\\\":\\\"http://test.com/concern/generic_works/#{work.id}/manifest/canvas/#{file_set.id}\\\",\\\"@type\\\":\\\"sc:Canvas\\\",\" \\\n+            \"\\\"label\\\":\\\"A Contained Generic File\\\",\" \\\n+            \"\\\"width\\\":640,\\\"height\\\":480,\" \\\n+              \"\\\"images\\\":[{\\\"@type\\\":\\\"oa:Annotation\\\",\\\"motivation\\\":\\\"sc:painting\\\",\" \\\n+                \"\\\"resource\\\":{\\\"@id\\\":\\\"/images/#{CGI.escape(file_set.original_file.id)}/info.json\\\",\\\"height\\\":480,\\\"width\\\":640},\" \\","path":"spec/controllers/curation_concerns/generic_works_controller_spec.rb","position":33,"original_position":33,"commit_id":"febfb0be6d69753b28978ddf21c59ef28f0885e7","original_commit_id":"febfb0be6d69753b28978ddf21c59ef28f0885e7","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Metrics/LineLength: Line is too long. [135/120]","created_at":"2016-04-29T15:40:45Z","updated_at":"2016-04-29T15:40:45Z","html_url":"https://github.com/projecthydra-labs/hybox/pull/118#discussion_r61597784","pull_request_url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/comments/61597784"},"html":{"href":"https://github.com/projecthydra-labs/hybox/pull/118#discussion_r61597784"},"pull_request":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118","id":68150524,"html_url":"https://github.com/projecthydra-labs/hybox/pull/118","diff_url":"https://github.com/projecthydra-labs/hybox/pull/118.diff","patch_url":"https://github.com/projecthydra-labs/hybox/pull/118.patch","issue_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues/118","number":118,"state":"open","locked":false,"title":"[WIP] Add IIIF presentation manifests","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"body":"TODO: \r\n- [x] Pull in `DisplayImage` from book-concerns\r\n- [ ] FileSetPresenter must respond to `display_image` (and return `DisplayImage`)\r\n- [x] Pull in `ImageBuilder` from book-concerns\r\n- [x] Pull in `ResourceBuilder` from book-concerns\r\n- [x] Move `WorkShowPresenter#work_presenters` to curation_concerns (https://github.com/projecthydra-labs/curation_concerns/pull/755)\r\n- [x] Stop checking if the presenter responds to `work_presenters`\r\n- [ ] Figure out how to display a Manifest with a single Canvas with a single Image (need different URIs for all those things?)\r\n- [ ] Make a mixin for the presenter that provides `#manifest_url`\r\n- [ ] Extract to a gem.\r\n- [ ] Un-skip the skipped specs.\r\n- [ ] Pull in `IIIFEndpoint` from book-concerns","created_at":"2016-04-28T01:21:35Z","updated_at":"2016-04-29T15:40:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c971a521da3087052e3e3372fa9a1cd4c1165f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118/commits","review_comments_url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118/comments","review_comment_url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues/118/comments","statuses_url":"https://api.github.com/repos/projecthydra-labs/hybox/statuses/febfb0be6d69753b28978ddf21c59ef28f0885e7","head":{"label":"projecthydra-labs:iiif_manifest","ref":"iiif_manifest","sha":"febfb0be6d69753b28978ddf21c59ef28f0885e7","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":53448835,"name":"hybox","full_name":"projecthydra-labs/hybox","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/hybox","description":"The Hydra-in-a-Box repository application","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/hybox","forks_url":"https://api.github.com/repos/projecthydra-labs/hybox/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/hybox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/hybox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/hybox/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/hybox/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/hybox/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/hybox/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/hybox/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/hybox/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/hybox/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/hybox/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/hybox/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/hybox/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/hybox/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/hybox/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/hybox/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/hybox/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/hybox/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/hybox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/hybox/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/hybox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/hybox/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/hybox/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/hybox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/hybox/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/hybox/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra-labs/hybox/deployments","created_at":"2016-03-08T22:08:25Z","updated_at":"2016-04-29T05:25:31Z","pushed_at":"2016-04-29T15:40:00Z","git_url":"git://github.com/projecthydra-labs/hybox.git","ssh_url":"git@github.com:projecthydra-labs/hybox.git","clone_url":"https://github.com/projecthydra-labs/hybox.git","svn_url":"https://github.com/projecthydra-labs/hybox","homepage":"http://hydrainabox.projecthydra.org/","size":284,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":1,"default_branch":"master"}},"base":{"label":"projecthydra-labs:master","ref":"master","sha":"1ad5c803951893fc64db13defd36e2fc9a665415","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":53448835,"name":"hybox","full_name":"projecthydra-labs/hybox","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/hybox","description":"The Hydra-in-a-Box repository application","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/hybox","forks_url":"https://api.github.com/repos/projecthydra-labs/hybox/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/hybox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/hybox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/hybox/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/hybox/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/hybox/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/hybox/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/hybox/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/hybox/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/hybox/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/hybox/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/hybox/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/hybox/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/hybox/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/hybox/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/hybox/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/hybox/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/hybox/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/hybox/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/hybox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/hybox/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/hybox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/hybox/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/hybox/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/hybox/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/hybox/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/hybox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/hybox/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/hybox/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra-labs/hybox/deployments","created_at":"2016-03-08T22:08:25Z","updated_at":"2016-04-29T05:25:31Z","pushed_at":"2016-04-29T15:40:00Z","git_url":"git://github.com/projecthydra-labs/hybox.git","ssh_url":"git@github.com:projecthydra-labs/hybox.git","clone_url":"https://github.com/projecthydra-labs/hybox.git","svn_url":"https://github.com/projecthydra-labs/hybox","homepage":"http://hydrainabox.projecthydra.org/","size":284,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118"},"html":{"href":"https://github.com/projecthydra-labs/hybox/pull/118"},"issue":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/issues/118"},"comments":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra-labs/hybox/statuses/febfb0be6d69753b28978ddf21c59ef28f0885e7"}}}}