Hey All,

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.

# statuses.yml ===================
active:
  name: Active
  description: MyString

# projects.yml ===================
one:
  name: Center for Health Communications Research
  abbreviation: CHCR
  description: A collection of 3 projects.
  grant_number: 8
  status_id: <%= statuses(:active).id %>
  start_date: 2008-03-20
  end_date: 2008-03-20

==========================================

But when I run tests I get this for output:

==========================================

  1) 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 main:Object

==========================================

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?

Thanks!

-Roy

Roy Pardee
Research Analyst/Programmer
Group Health Center For Health Studies (Cancer Research Network)
(206) 287-2078
Google Talk: rpardee

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to