Show More
Commit Description:
Merge pull request #15 from nattee/master...
Commit Description:
Merge pull request #15 from nattee/master finalizing merge of nattee's master
References:
File last commit:
Show/Diff file:
Action:
test/fixtures/users.yml | 38 lines | 727 B | text/x-yaml | YamlLexer |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
<%
User.public_class_method :encrypt
salt = "abc"
%>
john:
login: john
full_name: john
hashed_password: <%= User.encrypt("hello",salt) %>
salt: <%= salt %>
activated: true
mary:
login: mary
full_name: mary
hashed_password: <%= User.encrypt("goodbye",salt) %>
salt: <%= salt %>
roles: admin
activated: true
james:
login: james
full_name: James
hashed_password: <%= User.encrypt("morning",salt) %>
salt: <%= salt %>
contests: contest_a
activated: true
jack:
login: jack
full_name: Jack
hashed_password: <%= User.encrypt("morning",salt) %>
salt: <%= salt %>
contests: contest_a, contest_b
activated: true