Cybersecurity-Projects/PROJECTS/beginner/deserialization-gadget-lab/lib
CarterPerez-dev b082276376 fix(rube): load erb at require time, not inside generate
test_generate_returns_an_object_not_bytes errored on roughly 1 run in 12
under Minitest's random ordering.

assert_kind_of ERB, chain.generate evaluates the ERB constant before calling
generate, and generate was performing a lazy require of erb inside itself. If
that test ran before anything else had loaded erb, the constant did not exist.

The lazy require was the defect rather than the test. A require buried in a
method makes constant availability depend on call order for every caller, not
just this one. Moved to the top of the file.

Verified across 40 randomized runs, 0 unstable. The previous commit shipped
this suite showing 1 error and should not have.
2026-07-26 10:09:11 -04:00
..
rube fix(rube): load erb at require time, not inside generate 2026-07-26 10:09:11 -04:00
rube.rb feat(rube): M4 payload builder - working CVE-2026-41316 chain with version-predicted gate 2026-07-26 10:07:16 -04:00