Skip to content

Replace instance_variable_get with public accessors in set editor tests#31

Merged
pixelate merged 1 commit into
mainfrom
claude/remove-instance-variable-get-in-tests
Mar 21, 2026
Merged

Replace instance_variable_get with public accessors in set editor tests#31
pixelate merged 1 commit into
mainfrom
claude/remove-instance-variable-get-in-tests

Conversation

@pixelate
Copy link
Copy Markdown
Owner

@pixelate pixelate commented Mar 21, 2026

Summary

  • Add attr_reader :selected, :set, :ui to SetEditor and expose them publicly
  • Replace all instance_variable_get calls in tests with the new accessors
  • Add CLAUDE.md rule to avoid instance_variable_get and send in tests

Add attr_reader for selected, set, and ui to SetEditor and expose them
publicly. Update tests to use the accessors directly. Add CLAUDE.md rule
to avoid instance_variable_get and send in tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pixelate pixelate merged commit 7d119ab into main Mar 21, 2026
3 checks passed
@pixelate pixelate deleted the claude/remove-instance-variable-get-in-tests branch March 21, 2026 19:45
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.

1 participant