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

ActiveRecord::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

can your link you actual users fixture file

You 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.

I deleted the rest. But it still didn't work. And what install.yml file?? I don't have that file

I'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.

Nope I got no installs.yml