Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'spec/spec_helper' require 'pp' describe "$stdin" do before :each do @stdin, $stdin = $stdin, IOStub.new("foo\nbar\n") end after :each do $stdin = @stdin end it "can be replaced" do gets.should == "foo\n" end end
This paste will be private.
From the Design Piracy series on my blog: