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
Update dependencies #844
Update dependencies #844
Conversation
04f3afd
to
5743c6d
Compare
5743c6d
to
f54657f
Compare
end | ||
end | ||
result.instance_eval do | ||
def save ; true ; end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space found before semicolon.
# end | ||
# end | ||
ds.instance_eval do | ||
def save ; true ; end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space found before semicolon.
end | ||
end | ||
|
||
# stub item and datastream repo access methods | ||
result.datastreams.each_pair do |dsid, ds| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused block argument - dsid. If it's necessary, use _ or _dsid as an argument name to indicate that it won't be used.
f54657f
to
f406723
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple of small questions/requests, but overall, LGTM
@@ -8,7 +8,7 @@ | |||
@item = instantiate_fixture(@druid, Dor::Item) | |||
@user = User.find_or_create_by_webauth double('WebAuth', :login => 'sunetid', :logged_in? => true, :attributes => {'DISPLAYNAME' => 'Example User'}, :privgroup => '') | |||
allow(Dor).to receive(:find).with("druid:#{@druid}").and_return(@item) | |||
allow(Dor::Item).to receive(:find).with("druid:#{@druid}").and_return(@item) | |||
allow(Dor).to receive(:find).with("druid:#{@druid}").and_return(@item) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it's an allow, and the two lines are now identical, could we just remove this?
@@ -39,6 +39,7 @@ end | |||
|
|||
if ['test', 'development'].include? Rails.env | |||
require 'jettywrapper' | |||
Jettywrapper.hydra_jetty_version = 'v7.3.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add a comment explaining the version specification?
Update dependencies jm
Argo also needed changes to fixture object loading; whereas in AF 6.0, the
ActiveFedora::Base
class provided access to all datastreams, in later versions these needed to be made explicit. The easy thing to do was to simply cast objects to their expected classes.