Skip to content

Add method alias inside re-opened alias test#642

Merged
vinistock merged 1 commit intomainfrom
03-05-add_method_alias_inside_re-opened_alias_test
Mar 5, 2026
Merged

Add method alias inside re-opened alias test#642
vinistock merged 1 commit intomainfrom
03-05-add_method_alias_inside_re-opened_alias_test

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Mar 5, 2026

Add the missing method alias to our test.

@vinistock vinistock self-assigned this Mar 5, 2026
@vinistock vinistock added the chore Something that should not be included in release notes label Mar 5, 2026 — with Graphite App
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock marked this pull request as ready for review March 5, 2026 14:05
@vinistock vinistock requested a review from a team as a code owner March 5, 2026 14:05
assert_declaration_exists!(context, "Foo#some_attr()");
assert_declaration_exists!(context, "Foo::<Foo>#class_method()");
assert_declaration_exists!(context, "Foo#initialize()");
assert_declaration_exists!(context, "Foo#new_bar()");
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also assert Foo#bar() (the original method)? The test asserts all other members in the namespace, so I'd expect bar to also be there.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that's overkill. The functionality is already being tested by initialize. I just added bar because aliasing initialize is not common.

@vinistock vinistock merged commit 88a4d01 into main Mar 5, 2026
33 checks passed
Copy link
Member Author

Merge activity

@vinistock vinistock deleted the 03-05-add_method_alias_inside_re-opened_alias_test branch March 5, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Something that should not be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants