Welcome to the Treehouse Community
Looking to learn something new?
Validating Presence Error
Hey Treehouse. Can anyone help with this? it's the error message I get after running the test command in the validating presence video. I've done rake db:migrate and rake db:test:prepare
test_a_user_should_enter_a_first_name(UserTest): ActiveRecord::StatementInvalid: SQLite3::ConstraintException: constraint failed: INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2013-04-15 17:51:05', '2013-04-15 17:51:05', 298486374)
Do you have those fields in your test fixture? If so remove them, also ensure you have the fixtures properly nested and spaced using 2 spaces.
test > fixtures > users.yml
jason: first_name: "Jason" last_name: "Seifer" email: "firstname.lastname@example.org" profile_name: "jasonseifer"
Thanks Drake. All sorted
Mine is empty and am still getting same error message.