Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropertiesDatastream: Digital object is nil #553

Closed
escowles opened this issue Nov 3, 2014 · 1 comment
Closed

PropertiesDatastream: Digital object is nil #553

escowles opened this issue Nov 3, 2014 · 1 comment
Assignees
Milestone

Comments

@escowles
Copy link
Contributor

escowles commented Nov 3, 2014

I think properties_datastream_spec.rb just needs to be updated to create a stub DigitalObject, since AF::File requires it now, there is a commented-out line to do this in one place: https://github.com/projecthydra/sufia/blob/fedora-4/master/spec/models/properties_datastream_spec.rb#L5

Sample test failure:

 57) PropertiesDatastream to_solr solrizes import_url
Failure/Error: PropertiesDatastream.new(nil, 'properties').tap do |ds|
ArgumentError:
Digital object is nil
# /home/travis/.rvm/gems/ruby-2.1.3/bundler/gems/active_fedora-c37f219943b0/lib/active_fedora/file.rb:23:in `initialize'
# ./spec/models/properties_datastream_spec.rb:29:in `new'
# ./spec/models/properties_datastream_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/properties_datastream_spec.rb:34:in `block (3 levels) in <top (required)>'
# ./spec/models/properties_datastream_spec.rb:36:in `block (3 levels) in <top (required)>'
@jcoyne
Copy link
Member

jcoyne commented Nov 3, 2014

Fixed by samvera-deprecated/sufia@8fa3691

@jcoyne jcoyne closed this as completed Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants