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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E10a35d5f2a85c5f65fa848eaac48859?d=identicon&s=25 Zack Ham (Guest)
on 2006-05-30 05:24
(Received via mailing list)
I have a model that as an instance maintains a session on a website, and
has
methods to return some scraped data.  Instead of hitting a URL over and
over
during testing, I would like to just save the source to a file and use
that
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"
in
the directory fixtures/modelnames.  I can't imagine I'm the first person
to
have a model that maintains data, but does not extend activerecord.
What do
you guys do for this?

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