Matches normal test loading so constants (and source files) are only loaded when the test is executed. Syntax errors will then cause a failure for tests loading the file instead of outside the test process.
Related issues
Bug #18565: AccessPermissionsTest causes app syntax errors to be ignored in `rake test`
fixes #18565 - move constantize inside access permission tests
Matches normal test loading so constants (and source files) are only
loaded when the test is executed. Syntax errors will then cause a
failure for tests loading the file instead of outside the test process.