curation_concerns 1.7.1 → 1.7.2
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: d15b59d55d78440e70e6f40b0c0892065436ea41
|
4
|
+
data.tar.gz: c3d817c1978120de064a838441a8c40c668ce3e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d14c0baaf6373a14d4ba6b14343cdb81e2f0e93342f835fe6bb029a56087dcf04f43f8b822241737ef2dc66256c989c86a0b985d6e9a0c02c4f64275371ecefb
|
7
|
+
data.tar.gz: a280ccee709f04466a253c04106195fab1d9c8d014c14bf6aa6cf84bce359e44ab09d441b6849b4c61c08853feac88b0e345e95d0e1e781ab6577f590cf8cc9c
|
data/.travis.yml
CHANGED
@@ -217,6 +217,7 @@ module CurationConcerns
|
|
217
217
|
message = I18n.t("curation_concerns.workflow.unauthorized")
|
218
218
|
respond_to do |wants|
|
219
219
|
wants.html do
|
220
|
+
unavailable_presenter
|
220
221
|
flash[:notice] = message
|
221
222
|
render 'unavailable', status: :unauthorized
|
222
223
|
end
|
@@ -235,5 +236,9 @@ module CurationConcerns
|
|
235
236
|
end
|
236
237
|
end
|
237
238
|
end
|
239
|
+
|
240
|
+
def unavailable_presenter
|
241
|
+
@presenter ||= show_presenter.new(::SolrDocument.find(params[:id]), current_ability, request)
|
242
|
+
end
|
238
243
|
end
|
239
244
|
end
|
@@ -20,6 +20,7 @@ describe CurationConcerns::GenericWorksController do
|
|
20
20
|
get :show, params: { id: work }
|
21
21
|
expect(response.code).to eq '401'
|
22
22
|
expect(response).to render_template(:unavailable)
|
23
|
+
expect(assigns[:presenter]).to be_instance_of CurationConcerns::WorkShowPresenter
|
23
24
|
expect(flash[:notice]).to eq 'The work is not currently available because it has not yet completed the approval process'
|
24
25
|
end
|
25
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curation_concerns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hydra-head
|