Skip to content

remove deprecated argument from CollectionBrandingInfo#delete #6231

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

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

no-reply
Copy link
Contributor

@samvera/hyrax-code-reviewers

dunn
dunn previously approved these changes Aug 28, 2023
@tpendragon
Copy link
Contributor

We think that this is just a test error, maybe there's something wrong with the to_raise - maybe you have to chain it to a thing coming from a block, and it's chained on the to_change.

Comment on lines +57 to +64
it "removes banner file" do
expect { banner_info.delete }.to change {
begin
storage_adapter.find_by(id: banner_info.local_path)
rescue Valkyrie::StorageAdapter::FileNotFound
'Raised FileNotFound' # Convert the raised error so change can detect it
end
}.from(be_a(Valkyrie::StorageAdapter::File)).to(eq 'Raised FileNotFound')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find a way to make the change matcher play nicely with raised errors, so instead I'm converting it to a string.

@dlpierce dlpierce merged commit 1fd0c32 into main Sep 11, 2023
@dlpierce dlpierce deleted the banner-info-deprecation branch September 11, 2023 14:44
@dlpierce dlpierce added the notes-deprecation Release Notes: Deprecation added label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-deprecation Release Notes: Deprecation added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants