test/fixtures/users.yml
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html # This model initially had no columns defined. If you add columns to the# model remove the '{}' from the fixture names and add the columns immediately# below each fixture, per the syntax in the comments below#admin: email: one@test.com encrypted_password: <%= User.new.send(:password_digest, "secretpass") %> role_id: 1 registered: email: two@test.com encrypted_password: <%= User.new.send(:password_digest, "secretpass") %> role_id: 2