I think you could change these two lines to:

`Snippet::Legacy.should_receive(:new).and_return(snipped)`