Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
irb --> require 'mocha' ==> true irb --> require 'stubba' ==> true irb --> String.any_instance.stubs(:blah).returns("blah") NoMethodError: undefined method `stub' for nil:NilClass from /opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/object.rb:57:in `stubs' from (irb):3 irb --> exit duane-johnsons-imac-g5:~/Projects/merb duanejohnson$ irb -rubygems Welcome to interactive ruby! irb --> require 'mocha_standalone' ==> true irb --> String.any_instance.stubs(:blah).returns("blah") NoMethodError: undefined method `stub' for nil:NilClass from /opt/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/object.rb:57:in `stubs' from (irb):2
This paste will be private.
From the Design Piracy series on my blog: