Skip to content

Instantly share code, notes, and snippets.

@azuby
Created July 25, 2011 09:47
Show Gist options
  • Save azuby/1103838 to your computer and use it in GitHub Desktop.
Save azuby/1103838 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe User do
# Password encryption tests
describe "password encryption" do
before(:each) do
@attr = { :name => "Example User",
:email => "[email protected]",
:password => "secret"
#:password_confirmation => "secret"
}
@user = User.new(@attr)
# @user = User.create!(@attr)
p @user.save
p @user
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment