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
conghan tay
1,836 PointsActiveRecord::Fixture ; Build a simple ruby on rails application
I read somewhere that it might be the tabbing problem but I've already removed all the tabs with spaces
1) Error: UserTest#test_a_user_should_enter_a_first_name: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
2) Error: UserTest#test_a_user_should_enter_a_last_name: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
3) Error: UserTest#test_a_user_should_enter_a_profile_name: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
4) Error: UserTest#test_a_user_should_have_a_unique_profile_name: ActiveRecord::Fixture::FormatError: ActiveRecord::Fixture::FormatError
4 tests, 0 assertions, 0 failures, 4 errors, 0 skips
2 Answers
Stone Preston
42,016 Pointscan your link you actual users fixture file
faranaway
Courses Plus Student 13,885 PointsI'm going to take a shot at this with a solution (hopefully). I believe he ran into a similar issue I ran into when the devise model was generated. When this occurred a fixture was generated in the installs.yml
one: {}
# column: value
#
two: {}
# column: value
Now replace it with this:
one:
email: beta1@beta.com
two:
email: beta2@beta.com
Often times looking at the first couple lines in the terminal will sometimes give you a clue at what's wrong.
conghan tay
1,836 PointsNope I got no installs.yml
conghan tay
1,836 Pointsconghan tay
1,836 Pointshttps://www.dropbox.com/s/pxr2val76z9t4u4/users.yml Here it is!
faranaway
Courses Plus Student 13,885 Pointsfaranaway
Courses Plus Student 13,885 PointsYou can just delete the rest of the items on the file, even though it's commented out. Regarding the installs.yml file, I would paste the items with the replacement.
conghan tay
1,836 Pointsconghan tay
1,836 PointsI deleted the rest. But it still didn't work. And what install.yml file?? I don't have that file