Ruby WeakRef and running garbage collection in tests

Recently I was working with Puppet gem internals and found that each manifest run which idea is to manage some properties of system we want to control, creates transaction object. By extending Puppet provided codebase using plain Ruby I noticed issue. There is no API for fetching and accessing one of the object which state I wanted to read. […]