Forum: Ruby on Rails Trouble loading fixtures for name-spaced model in tests

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3504745159d79c585e4f7df8df76aa10?d=identicon&s=25 Ingo Weiss (ingoweiss)
on 2007-02-03 20:08
Hi, I had to wrap a model in a module to work around a name conflict.
Now my model is MyApp::Country instead of Country. I also renamed the
table to 'myapp_countries' and used set_table_name 'myapp_countries' in
my model. Now my app works just fine with this, but I am having trouble
getting my fixtures to load  in my functional and unit tests. I renamed
the countries fixture to 'myapp_countries.yml', and used 'fixtures
:myapp_countries' in the tests but I keep getting the following errror:
'FixtureClassNotFound: The class "MyappCountry" was not found.' Any
ideas how to make this work? Thanks! Ingo
20139de0a00fc8675e86d52f12f988ad?d=identicon&s=25 Jamez (Guest)
on 2007-02-06 11:30
(Received via mailing list)
Try posting your question on You might get your answer

On Feb 3, 8:08 pm, Ingo Weiss <>
This topic is locked and can not be replied to.