Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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