Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require File.dirname(__FILE__) + '/../spec_helper' describe Category, "from fixture :unterhaltung" do fixtures :categories before(:each) do @category = categories(:unterhaltung) end it "should be valid" do @category.should be_valid end it "should have correct name" do @category.name.should eql("Entwicklung") end it "should have correct description" do @category.description.should eql("Alles rund um Softwareentwicklung") end it "should have id that is not nil" do @category.id.should_not be_nil end it "should have id greater than zero" do @category.id.should > 0 end it "should do this in the future" end
This paste will be private.
From the Design Piracy series on my blog: