Show More
Commit Description:
fixed dependency errors in spec
Commit Description:
fixed dependency errors in spec
File last commit:
Show/Diff file:
Action:
test/fixtures/users.yml | 34 lines | 655 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 %>
mary:
login: mary
full_name: mary
hashed_password: <%= User.encrypt("goodbye",salt) %>
salt: <%= salt %>
roles: admin
james:
login: james
full_name: James
hashed_password: <%= User.encrypt("morning",salt) %>
salt: <%= salt %>
contests: contest_a
jack:
login: jack
full_name: Jack
hashed_password: <%= User.encrypt("morning",salt) %>
salt: <%= salt %>
contests: contest_a, contest_b