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.
@@ -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.keys).to include(Ddr::IndexFields::DEFAULT_LICENSE_TITLE,
25
- Ddr::IndexFields::DEFAULT_LICENSE_DESCRIPTION,
26
- Ddr::IndexFields::DEFAULT_LICENSE_URL)
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.keys).to include(Ddr::IndexFields::LICENSE_TITLE,
11
- Ddr::IndexFields::LICENSE_DESCRIPTION,
12
- Ddr::IndexFields::LICENSE_URL)
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.1
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-06 00:00:00.000000000 Z
12
+ date: 2015-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails