Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Test Error

I keep getting this error whilst running my user_test.rb file

test_A_user_should_enter_a_first_name(UserTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: table users has no column named password

I'm working on this video

http://teamtreehouse.com/library/programming-2/build-a-simple-version-of-facebook/writing-tests/fixtures

Thanks

2 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Graeme, sorry for the trouble! Try opening up test/fixtures/users.yml file and remove the password and password_confirmation lines.

That done the trick

Thanks