Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'rubygems' require 'spec' class Blah end class Main def self.run b = Blah.new b.start b.stop end end describe "main" do before do @blah = stub_everything Blah.stub!(:new).and_return @blah end it "should start blah" do @blah.should_receive(:start).and_return(true) Main.run end it "should stop blah" do @blah.should_receive(:stop).and_return(true) Main.run end end
This paste will be private.
From the Design Piracy series on my blog: