The problem here is that your code in `blockdevice` executes as soon as the class is loaded (otherwise than stuff inside a `Facter.add` block) which means that the stubbing happens too late. As a result we can do `Facter.collection.internal_loader.load(:blockdevices)` *after* the stubbing which will load the `blockdevices.rb` file again