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 UserTest < Test::Unit::TestCase fixtures :users # Replace this with your real tests. def test_user_password password = 'blogger' blogger = User.create(:name => 'Blogger', :password => password) # Prove password check OK, but real password is encrypted into 60-digits. assert blogger.password == password assert_equal 60, blogger.password.size end end
This paste will be private.
From the Design Piracy series on my blog: