curation_concerns 0.13.0 → 0.13.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: 7ededd8a3ac47bb55d279de6c1557e9f1ca49573
4
- data.tar.gz: 695d208d75e884acb6d9bab98b5aa2da9fe89905
3
+ metadata.gz: dbbc06a003809c33500df0e776f198252bedd77b
4
+ data.tar.gz: 6a6dec48311509540d871cf371455c03b2b90674
5
5
  SHA512:
6
- metadata.gz: 32e3c790662784293d7d40b23c8149d9cfa49063c0f304d577820d01ad505f547cb27195d9976bc00ebd11ed80ad589292f444041455d404f76849a07b0b7422
7
- data.tar.gz: 546f1002130a05f4100ce2731bf20ab75e9e726a6dffe127637d58a6aff47fa1d377a1dee270a1ffc4943065dab451dcacf1a726b05e4867a4e1f895623094a7
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 %>
@@ -1,3 +1,3 @@
1
1
  module CurationConcerns
2
- VERSION = "0.13.0".freeze
2
+ VERSION = "0.13.1".freeze
3
3
  end
@@ -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.0
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-21 00:00:00.000000000 Z
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.4.8
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