Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
before(:each) do @category = mock_model(Category) controller.stub!(:authenticate).and_return(true) @category.stub!(:new_record?).and_return(false) @category.stub!(:new).and_return(@category) Category.stub!(:find).and_return(@category) @category.stub!(:destroy).and_return(true) end
This paste will be private.
From the Design Piracy series on my blog: