ddr-models 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ddr/models/indexing.rb +4 -4
- data/lib/ddr/models/version.rb +1 -1
- data/spec/dummy/log/development.log +306 -0
- data/spec/dummy/log/test.log +3885 -0
- data/spec/models/collection_spec.rb +3 -3
- data/spec/support/shared_examples_for_licensable.rb +3 -3
- metadata +2 -2
@@ -21,9 +21,9 @@ RSpec.describe Collection, :type => :model do
|
|
21
21
|
expect(collection.defaultRights.license.url.first).to eq("http://library.duke.edu")
|
22
22
|
end
|
23
23
|
it "should index the terms" do
|
24
|
-
expect(collection.to_solr
|
25
|
-
|
26
|
-
|
24
|
+
expect(collection.to_solr[Ddr::IndexFields::DEFAULT_LICENSE_TITLE]).to eq("License Title")
|
25
|
+
expect(collection.to_solr[Ddr::IndexFields::DEFAULT_LICENSE_DESCRIPTION]).to eq("License Description")
|
26
|
+
expect(collection.to_solr[Ddr::IndexFields::DEFAULT_LICENSE_URL]).to eq("http://library.duke.edu")
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -7,9 +7,9 @@ RSpec.shared_examples "a licensable object" do
|
|
7
7
|
end
|
8
8
|
describe "indexing" do
|
9
9
|
it "should index the license terms" do
|
10
|
-
expect(object.to_solr
|
11
|
-
|
12
|
-
|
10
|
+
expect(object.to_solr[Ddr::IndexFields::LICENSE_TITLE]).to eq("License Title")
|
11
|
+
expect(object.to_solr[Ddr::IndexFields::LICENSE_DESCRIPTION]).to eq("License Description")
|
12
|
+
expect(object.to_solr[Ddr::IndexFields::LICENSE_URL]).to eq("http://library.duke.edu")
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Coble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|