blacklight-spotlight 0.33.0 → 0.33.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78348ea18057199e2df65dd4f77a17565870de28
|
4
|
+
data.tar.gz: e05ebfa153e5d460fc98a5b693b35c58f486de5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f7d04d673f41e1d635e1d79aa44e5ee13a2012c61c6d9e9119d99ce0c9f78a14ada590d674322c782f47d1b55d3d14fe9dfc6df581e0c0143accb6de4befc5
|
7
|
+
data.tar.gz: c09d5b011c13f56d88093c82dca782f70e970b8b6c45e6b6990666762ec789359c716f9f57c141ef06f496eef605dfbe9ff729a329f2474f1e437b51f3a19f97
|
data/lib/spotlight/version.rb
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
describe Spotlight::IiifManifestPresenter do
|
2
2
|
require 'iiif_manifest'
|
3
3
|
|
4
|
-
let(:resource) {
|
4
|
+
let(:resource) { SolrDocument.new(id: '1-1') }
|
5
|
+
let(:uploaded_resource) { FactoryGirl.build(:uploaded_resource) }
|
5
6
|
let(:controller) { double(Spotlight::CatalogController) }
|
6
7
|
|
7
8
|
let(:subject) { described_class.new(resource, controller) }
|
8
9
|
|
9
10
|
let(:profile_url) { 'http://iiif.io/api/image/2/level2.json' }
|
10
11
|
|
12
|
+
before do
|
13
|
+
allow(resource).to receive(:uploaded_resource).and_return(uploaded_resource)
|
14
|
+
end
|
15
|
+
|
11
16
|
describe 'public methods' do
|
12
17
|
let(:iiif_url) { 'https://iiif.test/images/1-1' }
|
13
18
|
let(:endpoint) { IIIFManifest::IIIFEndpoint.new(iiif_url, profile: profile_url) }
|
@@ -23,9 +28,7 @@ describe Spotlight::IiifManifestPresenter do
|
|
23
28
|
let(:img_height) { 10 }
|
24
29
|
|
25
30
|
before do
|
26
|
-
allow(
|
27
|
-
|
28
|
-
allow(spotlight_route_helper).to receive(:manifest_exhibit_solr_document_url).with(resource.exhibit, resource).and_return(manifest_url)
|
31
|
+
allow(spotlight_route_helper).to receive(:manifest_exhibit_solr_document_url).with(uploaded_resource.exhibit, resource).and_return(manifest_url)
|
29
32
|
allow(controller).to receive(:spotlight).and_return(spotlight_route_helper)
|
30
33
|
|
31
34
|
allow(blacklight_config).to receive(:view_config).with(:show).and_return(double(title_field: title_field_name))
|