Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
module M def self.m "me" end end class Object def f @f ||= M.m end end describe Object, "#f" do before :each do M.stub!(:m).and_return(5) end it "returns 5" do f.should == 5 end it "returns 6" do M.should_receive(:m).and_return(6) f.should == 6 end end
This paste will be private.
From the Design Piracy series on my blog: