Forum: Ruby on Rails RE: Fixtures question

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.
85de428f7dfe6f826db39f46aa91ef89?d=identicon&s=25 mfuller (Guest)
on 2005-11-12 12:49
(Received via mailing list)
I don't have my code with me right now so I can't share it now. But,
basically what I did was create a test class in my db directory. That
class inherits from UnitTest and uses all the fixtures I need. The class
has one empty method

This class "require" a special test_helper that set the environment
property to development rather than test.

Something like:

require "special_helper"
class < < Test::Unit::TestCase

fixture :what_evers

def test_load_fixtures

end
end

Then I run that test.
This topic is locked and can not be replied to.