curation_concerns 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbbc06a003809c33500df0e776f198252bedd77b
|
|
4
|
+
data.tar.gz: 6a6dec48311509540d871cf371455c03b2b90674
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0f6df730b3733a86e9df107fbadd1a6ae88e81f833b202a9647f590a33ece77a13ba61af525b07504813f5f3b221ec4f77262ce9a7e42a300de392f04077bd0
|
|
7
|
+
data.tar.gz: d1278f599af0eead707bd40eb9d8b981fd1dbd3d369d99988e772bb5c506cd7f385c87a059d3fd2a81ca76fe8f56567367c97092ecde7e3d18bac40903d07000
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<h1>Unauthorized</h1>
|
|
2
|
-
<% if respond_to?(:curation_concern) %>
|
|
2
|
+
<% if respond_to?(:curation_concern) && curation_concern %>
|
|
3
3
|
<p>The <%= curation_concern.human_readable_type.downcase %> you have tried to access is private<p>
|
|
4
4
|
<p>ID: <%= curation_concern.id %>
|
|
5
5
|
<% else %>
|
|
@@ -10,6 +10,13 @@ describe 'curation_concerns/base/unauthorized.html.erb' do
|
|
|
10
10
|
it "shows a message to the user" do
|
|
11
11
|
expect(rendered).to have_content "Unauthorized The book you have tried to access is private ID: 777"
|
|
12
12
|
end
|
|
13
|
+
|
|
14
|
+
context "and the concern is nil" do
|
|
15
|
+
let(:concern) { nil }
|
|
16
|
+
it "shows a message to the user" do
|
|
17
|
+
expect(rendered).to have_content "Unauthorized The page you have tried to access is private"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
13
20
|
end
|
|
14
21
|
|
|
15
22
|
context "when it doesn't respond to curation_concern" do
|
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: 0.13.
|
|
4
|
+
version: 0.13.1
|
|
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: 2016-04-
|
|
13
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: hydra-head
|
|
@@ -1224,7 +1224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1224
1224
|
version: '0'
|
|
1225
1225
|
requirements: []
|
|
1226
1226
|
rubyforge_project:
|
|
1227
|
-
rubygems_version: 2.
|
|
1227
|
+
rubygems_version: 2.5.1
|
|
1228
1228
|
signing_key:
|
|
1229
1229
|
specification_version: 4
|
|
1230
1230
|
summary: A Rails Engine that allows an application to CRUD CurationConcern objects
|