Resolve RSpec/LeakyConstantDeclaration in various specs
fixes #592383 (closed)
This MR resolves several `RSpec/LeakyConstantDeclaration` RuboCop offenses by ensuring that test-specific constants and classes are not defined within `RSpec.describe` or `context` blocks.