Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require File.dirname(__FILE__) + '/../test_helper' class TypeTest < Test::Unit::TestCase fixtures :types # Replace this with your real tests. def test_create example_type = Type.new assert !example_type.save end class Type < ActiveRecord::Base has_many :attributes has_many :bonus belongs_to :item validates_presence_of :name validates_uniqueness_of :name validates_associated :attributes end
This paste will be private.
From the Design Piracy series on my blog: