ddr-models 1.16.0 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
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.16.0
4
+ version: 1.16.1
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-06-04 00:00:00.000000000 Z
12
+ date: 2015-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -507,7 +507,6 @@ files:
507
507
  - spec/models/file_management_spec.rb
508
508
  - spec/models/has_admin_metadata_spec.rb
509
509
  - spec/models/has_children_spec.rb
510
- - spec/models/has_struct_metadata_spec.rb
511
510
  - spec/models/item_spec.rb
512
511
  - spec/models/solr_document_spec.rb
513
512
  - spec/models/superuser_spec.rb
@@ -637,7 +636,6 @@ test_files:
637
636
  - spec/models/file_management_spec.rb
638
637
  - spec/models/has_admin_metadata_spec.rb
639
638
  - spec/models/has_children_spec.rb
640
- - spec/models/has_struct_metadata_spec.rb
641
639
  - spec/models/item_spec.rb
642
640
  - spec/models/solr_document_spec.rb
643
641
  - spec/models/superuser_spec.rb
@@ -1,34 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module Ddr
4
- module Models
5
- RSpec.describe HasStructMetadata, type: :model do
6
-
7
- context "component" do
8
- describe "component creation" do
9
- let(:item) { Item.new }
10
- let(:comp) { Component.new(identifier: [ "id001" ]) }
11
- before do
12
- allow(comp).to receive(:parent).and_return(item)
13
- allow(comp).to receive(:has_content?).and_return(true)
14
- allow(comp).to receive(:content_type).and_return("image/tiff")
15
- allow(item).to receive(:children_by_file_use).and_return({})
16
- end
17
- it "should assign default values for unassigned attributes" do
18
- comp.save
19
- expect(comp.file_use).to_not be_nil
20
- expect(comp.order).to_not be_nil
21
- expect(comp.file_group).to_not be_nil
22
- end
23
- it "should not overwrite assigned attributes" do
24
- comp.update_attributes(file_use: 'foo', order: 3, file_group: 'special')
25
- expect(comp.file_use).to eq('foo')
26
- expect(comp.order).to eq(3)
27
- expect(comp.file_group).to eq('special')
28
- end
29
- end
30
- end
31
-
32
- end
33
- end
34
- end