I’m trying to do the basic test/unit stuff & having trouble w/a dynamic
fixture error. I’m running rails 2.0.2 on windows.
I have statuses & projects. Projects belong_to status and so forth.
name: Center for Health Communications Research
description: A collection of 3 projects.
status_id: <%= statuses(:active).id %>
But when I run tests I get this for output:
- Error: test_truth(DomainTest): Fixture::FormatError: a YAML error
occurred parsing C:/railsapps/collabtrac/test/fixtures/projects.yml.
Please note that YAML must be consistently indented using spaces. Tabs
are not allowed. Please have a look at http://www.yaml.org/faq.html The
exact error was: NoMethodError: undefined method `statuses’ for
Can someone tell me what I’m doing wrong here? Is the problem that
projects.yml is getting read in before statuses.yml? If so, how do I
control that load order?
Group Health Center For Health Studies (Cancer Research Network)
Google Talk: rpardee