aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/user_spec.rb
blob: 879006b4b527ec055076cbce2e7bffd12fbfea7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require File.dirname(__FILE__) + '/../spec_helper'

describe User, " when authenticating" do

  before do
    @user = User.new 
  end
  
  it "should create a hashed password when the password is set" do
    @user.hashed_password.should be_nil
    @user.password = "a test password"
    @user.hashed_password.should_not be_nil
  end

end