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

Alias @value to @exception in Try::Error #177

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alexkalderimis
Copy link

This allows deconstruct to work correctly

Fixes: #176

Copy link
Member

@flash-gordon flash-gordon left a comment

Choose a reason for hiding this comment

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

Thanks for the patch, I left a comment about specs

Comment on lines 60 to 62
it "deconstructs to the value" do
expect(subject.deconstruct).to eq ["foo"]
end
Copy link
Member

Choose a reason for hiding this comment

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

can you please test it with pattern matching rather than hitting .deconstruct directly? It's done like this in other tests. Also equality is checked via eql rather than eq

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for your review @flash-gordon - please see 9caca77

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

Successfully merging this pull request may close these issues.

Try::Error has an incorrect deconstruct implementation
2 participants