Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixture for default admin user #1

Open
wants to merge 1 commit into from

1 participant

Stephen Ball
Stephen Ball

Out of the box, the README leaves you with a blank admin user. One is created by the migration but then overwritten by the rake db:fixtures:load. I just pulled the admin user, including encrypted password, into the admin users fixture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. Stephen Ball

    fixture for default admin user

    sdball authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 4 deletions.
  1. +3 −4 store-after/test/fixtures/admin_users.yml
7 store-after/test/fixtures/admin_users.yml
View
@@ -4,7 +4,6 @@
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
-one: {}
-# column: value
-#
-# column: value
+admin:
+ email: admin@example.com
+ encrypted_password: $2a$10$LBaRtYUkC2TqRZzqyQbGIeyTj9.HiF46QqZFS8YgaL4iJQxpoObPK
Something went wrong with that request. Please try again.