Forum: Ruby on Rails data fixtures for non-activerecord models

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.
Zack H. (Guest)
on 2006-05-30 07:24
(Received via mailing list)
I have a model that as an instance maintains a session on a website, and
methods to return some scraped data.  Instead of hitting a URL over and
during testing, I would like to just save the source to a file and use
like a fixture.  A mock object doesn't seem appropriate, because there
is a
lot of data here.  What I'm doing now is storing each separate "fixture"
the directory fixtures/modelnames.  I can't imagine I'm the first person
have a model that maintains data, but does not extend activerecord.
What do
you guys do for this?

Thank you,
This topic is locked and can not be replied to.