Skip to content

Conversation

@amatsuda
Copy link
Member

I hit a minor case that tests a Rails-ish app that does not load Action View, and test-unit-rails raises an error here.

And in any case, it'd be better not to directly reference ActionView::TestCase here, but instead wrap the monkey-patch with ActiveSupport.on_load hook so that test-unit can skip monkey-patching ActionView::TestCase on apps that do not use this minor class.

Because Action View is not always in use when running Rails tests
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit 8e4a09e into test-unit:master May 1, 2025
95 of 96 checks passed
@amatsuda amatsuda deleted the action_view_test_case_on_load branch May 1, 2025 19:02
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