I can think of a couple of options:

1) extract the virus status checking code to a separate class that we can stub/override in test mode as required. It's moving the problem sideways a bit, but I think that would be preferable to stubbing out these methods on edition classes.

2) add an `after :build` callback to the `with_attachment` trait that performs the virus scan simulation when it's a published edition. That way draft editions are as they always were and published editions have their attachments in the right place.