{"action":"created","comment":{"url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/comments/171704262","pull_request_review_id":100605707,"id":171704262,"diff_hunk":"@@ -36,18 +36,55 @@\n            title: title)\n   end\n \n+  let(:file_path) { File.join(fixture_path, \"images\", \"cusbspcmss36_110108_1_a.tif\") }\n+\n+  let(:file_set) do\n+    FileSet.new(admin_policy_id: AdminPolicy::PUBLIC_POLICY_ID) do |fs|\n+      Hydra::Works::AddFileToFileSet.call(\n+        fs,\n+        File.new(file_path),\n+        :original_file\n+      )\n+    end\n+  end\n+\n   # See config/routes.rb: routing for images is a little weird\n   scenario \"show the page for the regular image\" do\n-    visit catalog_ark_path(\"ark:\", \"99999\", image.id)\n+    visit catalog_ark_path(\"ark:\", \"99123\", image.id)\n \n     expect(page).to have_content extent.first\n     expect(page).to have_content creator.first\n     expect(page).to have_content scale.first\n     expect(page).to have_content title.first\n   end\n \n+  describe \"viewing images allows for pan and zoom\" do\n+    before do\n+      allow_any_instance_of(SolrDocument).to receive(:ark).and_return(\"99123\")\n+      image.members << file_set\n+      image.save!\n+      image.update_index\n+    end\n+\n+    context \"page doesn't use openseadragon picture tag with pdfs\" do\n+      let(:file_path) { File.join(fixture_path, \"pdf\", \"sample.pdf\") }\n+\n+      scenario \"with a pdf\" do","path":"spec/features/show_image_spec.rb","position":47,"original_position":47,"commit_id":"f0389ef490c90443461d6ce064a7ba5f50f3efd4","original_commit_id":"f0389ef490c90443461d6ce064a7ba5f50f3efd4","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Capybara/FeatureMethods: Use it instead of scenario.","created_at":"2018-03-01T21:47:56Z","updated_at":"2018-03-01T21:47:56Z","html_url":"https://github.com/ucsblibrary/alexandria/pull/112#discussion_r171704262","pull_request_url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/comments/171704262"},"html":{"href":"https://github.com/ucsblibrary/alexandria/pull/112#discussion_r171704262"},"pull_request":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112","id":172362945,"html_url":"https://github.com/ucsblibrary/alexandria/pull/112","diff_url":"https://github.com/ucsblibrary/alexandria/pull/112.diff","patch_url":"https://github.com/ucsblibrary/alexandria/pull/112.patch","issue_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues/112","number":112,"state":"open","locked":false,"title":"adding openseadragon to images for panning and zooming","user":{"login":"jenlindner","id":186452,"avatar_url":"https://avatars2.githubusercontent.com/u/186452?v=4","gravatar_id":"","url":"https://api.github.com/users/jenlindner","html_url":"https://github.com/jenlindner","followers_url":"https://api.github.com/users/jenlindner/followers","following_url":"https://api.github.com/users/jenlindner/following{/other_user}","gists_url":"https://api.github.com/users/jenlindner/gists{/gist_id}","starred_url":"https://api.github.com/users/jenlindner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenlindner/subscriptions","organizations_url":"https://api.github.com/users/jenlindner/orgs","repos_url":"https://api.github.com/users/jenlindner/repos","events_url":"https://api.github.com/users/jenlindner/events{/privacy}","received_events_url":"https://api.github.com/users/jenlindner/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T21:47:42Z","updated_at":"2018-03-01T21:47:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4653dda803154f04dfe4e0e859ec43c2d0fce987","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dunn","id":985416,"avatar_url":"https://avatars3.githubusercontent.com/u/985416?v=4","gravatar_id":"","url":"https://api.github.com/users/dunn","html_url":"https://github.com/dunn","followers_url":"https://api.github.com/users/dunn/followers","following_url":"https://api.github.com/users/dunn/following{/other_user}","gists_url":"https://api.github.com/users/dunn/gists{/gist_id}","starred_url":"https://api.github.com/users/dunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunn/subscriptions","organizations_url":"https://api.github.com/users/dunn/orgs","repos_url":"https://api.github.com/users/dunn/repos","events_url":"https://api.github.com/users/dunn/events{/privacy}","received_events_url":"https://api.github.com/users/dunn/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112/commits","review_comments_url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112/comments","review_comment_url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues/112/comments","statuses_url":"https://api.github.com/repos/ucsblibrary/alexandria/statuses/f0389ef490c90443461d6ce064a7ba5f50f3efd4","head":{"label":"ucsblibrary:image-zoom-and-pan","ref":"image-zoom-and-pan","sha":"f0389ef490c90443461d6ce064a7ba5f50f3efd4","user":{"login":"ucsblibrary","id":27018656,"avatar_url":"https://avatars3.githubusercontent.com/u/27018656?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsblibrary","html_url":"https://github.com/ucsblibrary","followers_url":"https://api.github.com/users/ucsblibrary/followers","following_url":"https://api.github.com/users/ucsblibrary/following{/other_user}","gists_url":"https://api.github.com/users/ucsblibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsblibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsblibrary/subscriptions","organizations_url":"https://api.github.com/users/ucsblibrary/orgs","repos_url":"https://api.github.com/users/ucsblibrary/repos","events_url":"https://api.github.com/users/ucsblibrary/events{/privacy}","received_events_url":"https://api.github.com/users/ucsblibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":94377561,"name":"alexandria","full_name":"ucsblibrary/alexandria","owner":{"login":"ucsblibrary","id":27018656,"avatar_url":"https://avatars3.githubusercontent.com/u/27018656?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsblibrary","html_url":"https://github.com/ucsblibrary","followers_url":"https://api.github.com/users/ucsblibrary/followers","following_url":"https://api.github.com/users/ucsblibrary/following{/other_user}","gists_url":"https://api.github.com/users/ucsblibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsblibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsblibrary/subscriptions","organizations_url":"https://api.github.com/users/ucsblibrary/orgs","repos_url":"https://api.github.com/users/ucsblibrary/repos","events_url":"https://api.github.com/users/ucsblibrary/events{/privacy}","received_events_url":"https://api.github.com/users/ucsblibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucsblibrary/alexandria","description":"Code for the Alexandria Digital Research Library","fork":false,"url":"https://api.github.com/repos/ucsblibrary/alexandria","forks_url":"https://api.github.com/repos/ucsblibrary/alexandria/forks","keys_url":"https://api.github.com/repos/ucsblibrary/alexandria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucsblibrary/alexandria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucsblibrary/alexandria/teams","hooks_url":"https://api.github.com/repos/ucsblibrary/alexandria/hooks","issue_events_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues/events{/number}","events_url":"https://api.github.com/repos/ucsblibrary/alexandria/events","assignees_url":"https://api.github.com/repos/ucsblibrary/alexandria/assignees{/user}","branches_url":"https://api.github.com/repos/ucsblibrary/alexandria/branches{/branch}","tags_url":"https://api.github.com/repos/ucsblibrary/alexandria/tags","blobs_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucsblibrary/alexandria/statuses/{sha}","languages_url":"https://api.github.com/repos/ucsblibrary/alexandria/languages","stargazers_url":"https://api.github.com/repos/ucsblibrary/alexandria/stargazers","contributors_url":"https://api.github.com/repos/ucsblibrary/alexandria/contributors","subscribers_url":"https://api.github.com/repos/ucsblibrary/alexandria/subscribers","subscription_url":"https://api.github.com/repos/ucsblibrary/alexandria/subscription","commits_url":"https://api.github.com/repos/ucsblibrary/alexandria/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucsblibrary/alexandria/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucsblibrary/alexandria/contents/{+path}","compare_url":"https://api.github.com/repos/ucsblibrary/alexandria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucsblibrary/alexandria/merges","archive_url":"https://api.github.com/repos/ucsblibrary/alexandria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucsblibrary/alexandria/downloads","issues_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues{/number}","pulls_url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls{/number}","milestones_url":"https://api.github.com/repos/ucsblibrary/alexandria/milestones{/number}","notifications_url":"https://api.github.com/repos/ucsblibrary/alexandria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucsblibrary/alexandria/labels{/name}","releases_url":"https://api.github.com/repos/ucsblibrary/alexandria/releases{/id}","deployments_url":"https://api.github.com/repos/ucsblibrary/alexandria/deployments","created_at":"2017-06-14T22:19:54Z","updated_at":"2017-11-06T22:19:41Z","pushed_at":"2018-03-01T21:47:43Z","git_url":"git://github.com/ucsblibrary/alexandria.git","ssh_url":"git@github.com:ucsblibrary/alexandria.git","clone_url":"https://github.com/ucsblibrary/alexandria.git","svn_url":"https://github.com/ucsblibrary/alexandria","homepage":"https://alexandria.ucsb.edu","size":16299,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"ucsblibrary:master","ref":"master","sha":"f282146100b703138ac757c1c0b25bc85783e77f","user":{"login":"ucsblibrary","id":27018656,"avatar_url":"https://avatars3.githubusercontent.com/u/27018656?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsblibrary","html_url":"https://github.com/ucsblibrary","followers_url":"https://api.github.com/users/ucsblibrary/followers","following_url":"https://api.github.com/users/ucsblibrary/following{/other_user}","gists_url":"https://api.github.com/users/ucsblibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsblibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsblibrary/subscriptions","organizations_url":"https://api.github.com/users/ucsblibrary/orgs","repos_url":"https://api.github.com/users/ucsblibrary/repos","events_url":"https://api.github.com/users/ucsblibrary/events{/privacy}","received_events_url":"https://api.github.com/users/ucsblibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":94377561,"name":"alexandria","full_name":"ucsblibrary/alexandria","owner":{"login":"ucsblibrary","id":27018656,"avatar_url":"https://avatars3.githubusercontent.com/u/27018656?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsblibrary","html_url":"https://github.com/ucsblibrary","followers_url":"https://api.github.com/users/ucsblibrary/followers","following_url":"https://api.github.com/users/ucsblibrary/following{/other_user}","gists_url":"https://api.github.com/users/ucsblibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsblibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsblibrary/subscriptions","organizations_url":"https://api.github.com/users/ucsblibrary/orgs","repos_url":"https://api.github.com/users/ucsblibrary/repos","events_url":"https://api.github.com/users/ucsblibrary/events{/privacy}","received_events_url":"https://api.github.com/users/ucsblibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucsblibrary/alexandria","description":"Code for the Alexandria Digital Research Library","fork":false,"url":"https://api.github.com/repos/ucsblibrary/alexandria","forks_url":"https://api.github.com/repos/ucsblibrary/alexandria/forks","keys_url":"https://api.github.com/repos/ucsblibrary/alexandria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucsblibrary/alexandria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucsblibrary/alexandria/teams","hooks_url":"https://api.github.com/repos/ucsblibrary/alexandria/hooks","issue_events_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues/events{/number}","events_url":"https://api.github.com/repos/ucsblibrary/alexandria/events","assignees_url":"https://api.github.com/repos/ucsblibrary/alexandria/assignees{/user}","branches_url":"https://api.github.com/repos/ucsblibrary/alexandria/branches{/branch}","tags_url":"https://api.github.com/repos/ucsblibrary/alexandria/tags","blobs_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucsblibrary/alexandria/statuses/{sha}","languages_url":"https://api.github.com/repos/ucsblibrary/alexandria/languages","stargazers_url":"https://api.github.com/repos/ucsblibrary/alexandria/stargazers","contributors_url":"https://api.github.com/repos/ucsblibrary/alexandria/contributors","subscribers_url":"https://api.github.com/repos/ucsblibrary/alexandria/subscribers","subscription_url":"https://api.github.com/repos/ucsblibrary/alexandria/subscription","commits_url":"https://api.github.com/repos/ucsblibrary/alexandria/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucsblibrary/alexandria/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucsblibrary/alexandria/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucsblibrary/alexandria/contents/{+path}","compare_url":"https://api.github.com/repos/ucsblibrary/alexandria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucsblibrary/alexandria/merges","archive_url":"https://api.github.com/repos/ucsblibrary/alexandria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucsblibrary/alexandria/downloads","issues_url":"https://api.github.com/repos/ucsblibrary/alexandria/issues{/number}","pulls_url":"https://api.github.com/repos/ucsblibrary/alexandria/pulls{/number}","milestones_url":"https://api.github.com/repos/ucsblibrary/alexandria/milestones{/number}","notifications_url":"https://api.github.com/repos/ucsblibrary/alexandria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucsblibrary/alexandria/labels{/name}","releases_url":"https://api.github.com/repos/ucsblibrary/alexandria/releases{/id}","deployments_url":"https://api.github.com/repos/ucsblibrary/alexandria/deployments","created_at":"2017-06-14T22:19:54Z","updated_at":"2017-11-06T22:19:41Z","pushed_at":"2018-03-01T21:47:43Z","git_url":"git://github.com/ucsblibrary/alexandria.git","ssh_url":"git@github.com:ucsblibrary/alexandria.git","clone_url":"https://github.com/ucsblibrary/alexandria.git","svn_url":"https://github.com/ucsblibrary/alexandria","homepage":"https://alexandria.ucsb.edu","size":16299,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112"},"html":{"href":"https://github.com/ucsblibrary/alexandria/pull/112"},"issue":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/issues/112"},"comments":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/ucsblibrary/alexandria/statuses/f0389ef490c90443461d6ce064a7ba5f50f3efd4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}