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

Undefined method `has_content?' for #<FileContentDatastream:0x000000084eae00> #544

Closed
escowles opened this issue Nov 3, 2014 · 4 comments
Milestone

Comments

@escowles
Copy link
Contributor

escowles commented Nov 3, 2014

Sample test failure:

44) CreateDerivativesJob thumbnail generation with an image (.jp2) file generates a thumbnail on job run
Failure/Error: subject.run
NoMethodError:
undefined method `has_content?' for #<FileContentDatastream:0x000000084eae00>
# /home/travis/.rvm/gems/ruby-2.1.3/gems/activemodel-4.1.7/lib/active_model/attribute_methods.rb:435:in `method_missing'
# ./sufia-models/app/jobs/create_derivatives_job.rb:7:in `run'
# ./spec/jobs/create_derivatives_job_spec.rb:70:in `block (4 levels) in <top (required)>'
@escowles
Copy link
Contributor Author

escowles commented Nov 3, 2014

This looks like a problem with the Travis-specific monkey-patching of Hydra::Derivatives::ExtractMetadata:

https://github.com/projecthydra/sufia/blob/fedora-4/master/spec/spec_helper.rb#L45

@awead
Copy link
Contributor

awead commented Nov 3, 2014

@escowles I wonder if #554 would fix that?

@escowles
Copy link
Contributor Author

escowles commented Nov 3, 2014

@awead Yes, I bet that would fix it.

@awead awead modified the milestone: Fedora 4 Nov 3, 2014
@awead
Copy link
Contributor

awead commented Nov 3, 2014

Fixed in latest sufia build with latest AF fedora-4

@awead awead 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

2 participants