Sunday, December 12, 2010

[Rails] Fixtures and unit tests - no such file to load

Hello all,

I'm having some issues with my test fixtures and unit tests and am
hoping somebody has an idea about how to fix it.

Background:

I have a table in my legacy database called tp_approval_step.
For this table I have a fixture called tp_approval_step.yml
I have a model called ApprovalProcessStep that uses set_table_name
'tp_approval_step'
In my test file, ApprovalProcessStepTest, I have used
set_fixture_class :tp_approval_step => ApprovalProcessStep

Now whenever I run rake test:units I get this error:
Unable to load tp_approval_step, underlying cause no such file to load
-- tp_approval_step

And not only do I get this for the example above, but I get it for
every fixture in my rails app.

Any help would be greatly appreciated. I want to get on with testing
my code!

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate