Comment Comment by nagnatron You're right that it's similar to extracting it to a module since (in this example) HashGenerator.new is evaluated with the class and in my Request spec I can't exactly stub HashGenerator.new to return a double.How would you do it? parent nagnatron 14 years ago
How would you do it?