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

Use method, not Moose interals in tests #210

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

waterkip
Copy link
Collaborator

We used to use the internals of how blessed objects work, by doing $obj->{foo} instead of $obj->foo. This poses several issues:

  1. We can't easily refactor code, because we can rename the attributes but when accessing them in tests it fails.

  2. If Moose for $reasons decide to change their API we are also doing things wrong.

So fix it :)

We used to use the internals of how blessed objects work, by doing
`$obj->{foo}` instead of `$obj->foo`. This poses several issues:

1. We can't easily refactor code, because we can rename the attributes
   but when accessing them in tests it fails.

2. If Moose for $reasons decide to change their API we are also doing
   things wrong.

So fix it :)

Signed-off-by: Wesley Schwengle <waterkip@cpan.org>
Copy link
Contributor

@timlegge timlegge left a comment

Choose a reason for hiding this comment

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

LGTM

@waterkip waterkip merged commit 6f7d6cb into perl-net-saml2:master Apr 19, 2024
4 checks passed
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.

2 participants