active-fedora 8.2.1 → 8.2.2

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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/active-fedora.gemspec +1 -2
  3. data/lib/active_fedora/datastream_collections.rb +4 -8
  4. data/lib/active_fedora/datastreams.rb +7 -9
  5. data/lib/active_fedora/version.rb +1 -1
  6. data/spec/config_helper.rb +3 -3
  7. data/spec/integration/associations_spec.rb +76 -76
  8. data/spec/integration/auditable_spec.rb +7 -7
  9. data/spec/integration/autosave_association_spec.rb +3 -3
  10. data/spec/integration/base_spec.rb +51 -51
  11. data/spec/integration/belongs_to_association_spec.rb +27 -27
  12. data/spec/integration/bug_spec.rb +1 -1
  13. data/spec/integration/collection_association_spec.rb +2 -2
  14. data/spec/integration/complex_rdf_datastream_spec.rb +32 -32
  15. data/spec/integration/datastream_collections_spec.rb +42 -42
  16. data/spec/integration/datastream_spec.rb +19 -19
  17. data/spec/integration/datastreams_spec.rb +25 -25
  18. data/spec/integration/delete_all_spec.rb +5 -5
  19. data/spec/integration/fedora_solr_sync_spec.rb +1 -1
  20. data/spec/integration/full_featured_model_spec.rb +9 -9
  21. data/spec/integration/has_and_belongs_to_many_associations_spec.rb +46 -47
  22. data/spec/integration/has_many_associations_spec.rb +17 -17
  23. data/spec/integration/json_serialization_spec.rb +2 -2
  24. data/spec/integration/load_from_solr_spec.rb +1 -1
  25. data/spec/integration/model_spec.rb +9 -9
  26. data/spec/integration/nested_attribute_spec.rb +17 -17
  27. data/spec/integration/ntriples_datastream_spec.rb +43 -43
  28. data/spec/integration/om_datastream_spec.rb +37 -37
  29. data/spec/integration/persistence_spec.rb +1 -1
  30. data/spec/integration/rdf_nested_attributes_spec.rb +9 -9
  31. data/spec/integration/relation_delegation_spec.rb +7 -7
  32. data/spec/integration/relation_spec.rb +2 -2
  33. data/spec/integration/rels_ext_datastream_spec.rb +3 -3
  34. data/spec/integration/scoped_query_spec.rb +14 -14
  35. data/spec/integration/solr_service_spec.rb +24 -24
  36. data/spec/support/mock_fedora.rb +9 -10
  37. data/spec/unit/active_fedora_spec.rb +20 -20
  38. data/spec/unit/attributes_spec.rb +24 -24
  39. data/spec/unit/base_active_model_spec.rb +6 -6
  40. data/spec/unit/base_cma_spec.rb +2 -2
  41. data/spec/unit/base_datastream_management_spec.rb +7 -7
  42. data/spec/unit/base_extra_spec.rb +20 -20
  43. data/spec/unit/base_spec.rb +141 -141
  44. data/spec/unit/builder/has_and_belongs_to_many_spec.rb +1 -1
  45. data/spec/unit/callback_spec.rb +12 -12
  46. data/spec/unit/code_configurator_spec.rb +7 -7
  47. data/spec/unit/config_spec.rb +2 -2
  48. data/spec/unit/content_model_spec.rb +19 -20
  49. data/spec/unit/core_spec.rb +1 -1
  50. data/spec/unit/datastream_collections_spec.rb +101 -101
  51. data/spec/unit/datastream_spec.rb +12 -12
  52. data/spec/unit/datastreams_spec.rb +39 -39
  53. data/spec/unit/file_configurator_spec.rb +117 -117
  54. data/spec/unit/has_and_belongs_to_many_collection_spec.rb +16 -16
  55. data/spec/unit/has_many_collection_spec.rb +5 -5
  56. data/spec/unit/inheritance_spec.rb +5 -5
  57. data/spec/unit/model_spec.rb +5 -5
  58. data/spec/unit/nom_datastream_spec.rb +5 -5
  59. data/spec/unit/ntriples_datastream_spec.rb +56 -56
  60. data/spec/unit/om_datastream_spec.rb +99 -99
  61. data/spec/unit/persistence_spec.rb +2 -2
  62. data/spec/unit/predicates_spec.rb +28 -28
  63. data/spec/unit/property_spec.rb +5 -5
  64. data/spec/unit/qualified_dublin_core_datastream_spec.rb +10 -10
  65. data/spec/unit/query_spec.rb +66 -66
  66. data/spec/unit/rdf_datastream_spec.rb +10 -10
  67. data/spec/unit/rdf_resource_datastream_spec.rb +2 -2
  68. data/spec/unit/rdf_xml_writer_spec.rb +3 -3
  69. data/spec/unit/rdfxml_rdf_datastream_spec.rb +9 -9
  70. data/spec/unit/relationship_graph_spec.rb +31 -31
  71. data/spec/unit/reload_on_save_spec.rb +3 -3
  72. data/spec/unit/rels_ext_datastream_spec.rb +28 -28
  73. data/spec/unit/rspec_matchers/belong_to_associated_active_fedora_object_matcher_spec.rb +11 -11
  74. data/spec/unit/rspec_matchers/have_many_associated_active_fedora_objects_matcher_spec.rb +11 -11
  75. data/spec/unit/rspec_matchers/have_predicate_matcher_spec.rb +11 -11
  76. data/spec/unit/rspec_matchers/match_fedora_datastream_matcher_spec.rb +7 -7
  77. data/spec/unit/rubydora_connection_spec.rb +3 -3
  78. data/spec/unit/semantic_node_spec.rb +17 -17
  79. data/spec/unit/serializers_spec.rb +1 -1
  80. data/spec/unit/service_definitions_spec.rb +11 -11
  81. data/spec/unit/simple_datastream_spec.rb +6 -6
  82. data/spec/unit/solr_config_options_spec.rb +10 -10
  83. data/spec/unit/solr_digital_object_spec.rb +4 -4
  84. data/spec/unit/solr_service_spec.rb +41 -41
  85. data/spec/unit/unsaved_digital_object_spec.rb +8 -8
  86. data/spec/unit/validations_spec.rb +6 -6
  87. metadata +4 -4
@@ -5,24 +5,24 @@ describe ActiveFedora::UnsavedDigitalObject do
5
5
  describe "an unsaved instance" do
6
6
  subject { ActiveFedora::UnsavedDigitalObject.new(ActiveFedora::Base, 'bar') }
7
7
 
8
- it { should be_new_record}
8
+ it { is_expected.to be_new_record}
9
9
 
10
10
  it "should have ownerId property" do
11
11
  subject.ownerId = 'fooo'
12
- subject.ownerId.should == 'fooo'
12
+ expect(subject.ownerId).to eq('fooo')
13
13
  end
14
14
 
15
15
  it "should have state" do
16
16
  subject.ownerId = 'D'
17
- subject.ownerId.should == 'D'
17
+ expect(subject.ownerId).to eq('D')
18
18
  end
19
19
 
20
20
  it "should not have a default pid" do
21
- subject.pid.should be_nil
21
+ expect(subject.pid).to be_nil
22
22
  end
23
23
  it "should be able to set the pid" do
24
24
  subject.pid = "my:new_object"
25
- subject.pid.should == "my:new_object"
25
+ expect(subject.pid).to eq("my:new_object")
26
26
  end
27
27
  end
28
28
 
@@ -35,13 +35,13 @@ describe ActiveFedora::UnsavedDigitalObject do
35
35
  @saved_obj = obj.save
36
36
  end
37
37
  it "should be a digital object" do
38
- @saved_obj.should be_kind_of ActiveFedora::DigitalObject
38
+ expect(@saved_obj).to be_kind_of ActiveFedora::DigitalObject
39
39
  end
40
40
  it "should set the ownerId property" do
41
- @saved_obj.ownerId.should == 'fooo'
41
+ expect(@saved_obj.ownerId).to eq('fooo')
42
42
  end
43
43
  it "should set the label property" do
44
- @saved_obj.label.should == 'my label'
44
+ expect(@saved_obj.label).to eq('my label')
45
45
  end
46
46
  end
47
47
 
@@ -27,23 +27,23 @@ describe ActiveFedora::Base do
27
27
  subject.attributes = { fubar: ['here'], swank: 'long enough' }
28
28
  end
29
29
 
30
- it { should be_valid}
30
+ it { is_expected.to be_valid}
31
31
  end
32
32
  describe "an invalid object" do
33
33
  before do
34
34
  subject.attributes = { swank: 'smal' }
35
35
  end
36
36
  it "should have errors" do
37
- subject.should_not be_valid
38
- subject.errors[:fubar].should == ["can't be blank"]
39
- subject.errors[:swank].should == ["is too short (minimum is 5 characters)"]
37
+ expect(subject).not_to be_valid
38
+ expect(subject.errors[:fubar]).to eq(["can't be blank"])
39
+ expect(subject.errors[:swank]).to eq(["is too short (minimum is 5 characters)"])
40
40
  end
41
41
  end
42
42
 
43
43
  describe "required terms" do
44
44
  it "should be required" do
45
- subject.required?(:fubar).should be true
46
- subject.required?(:swank).should be false
45
+ expect(subject.required?(:fubar)).to be true
46
+ expect(subject.required?(:swank)).to be false
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.1
4
+ version: 8.2.2
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-10-18 00:00:00.000000000 Z
13
+ date: 2016-11-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -192,14 +192,14 @@ dependencies:
192
192
  requirements:
193
193
  - - "~>"
194
194
  - !ruby/object:Gem::Version
195
- version: '2.99'
195
+ version: '3.0'
196
196
  type: :development
197
197
  prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
- version: '2.99'
202
+ version: '3.0'
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: rspec-its
205
205
  requirement: !ruby/object:Gem::Requirement