A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
658 B

require 'test_helper'
class UserTest < ActiveSupport::TestCase
test "basic user" do
@user = User.new(
email: 'original@example.com',
firstname: 'first',
lastname: 'last',
login: 'login',
password: 'abcdefghijklmnopqrstuvwxyz'
)
assert_not_nil @user
assert_equal 'c3fcd3d76192e4007dfb496cca67e13b', @user.encrypted_password
end
test "the password" do
@user = User.new(
email: 'original@example.com',
firstname: 'first',
lastname: 'last',
login: 'login',
password: 'abcdefghijklmnopqrstuvwxyz'
)
assert @user.valid_password? 'abcdefghijklmnopqrstuvwxyz'
end
end