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
Allan Evans
9,501 PointsTesting friendships - Problem with "mike" test
Hey guys, I'm running into 3 errors at the end of the Testing Friendships lesson, when I try to use mike as a friend in the last test I get yelled at:
1) Error: test: UserFriendship should belong to friend. (UserFriendshipTest): ActiveRecord::StatementInvalid: SQLite3::SQLException: table users has no column named mike: INSERT INTO "users" ("first_name", "last_name", "email", "profile_name", "mike", "created_at", "updated_at", "id") VALUES ('Mike', 'The Frog', 'mike@teamtreehouse.com', 'mikethefrog', NULL, '2013-03-03 22:27:06', '2013-03-03 22 :27:06', 345929739)
The other 2 are almost identical to this one. Let me know if you think of anything.
2 Answers
Jason Seifer
Treehouse Guest TeacherHey Allan, in your users.yml fixture do you have a line named "mike"? If so, take it out.
Allan Evans
9,501 PointsAlright i'll do that tonight.