Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## controller class FooController < ApplicationController protected def load_user user = User.find(params[:id]) user.do_some_complex_shit user end public def show @user = load_user @other_thing = @user.crazy_method end end ## spec it "shows the user" do @user = mock_model(User, :crazy_method => "Elephants!") controller.stub!(:load_user).and_return @user get :show end
This paste will be private.
From the Design Piracy series on my blog: