search for: modelatest

Displaying 1 result from an estimated 1 matches for "modelatest".

Did you mean: model_test
2005 Dec 15
3
Fixtures and table name
...iles associated to the same table. Here''s my use case: I have multiple unit test classes that all work with the same model class and hence the same database table. However, for each test class I want the data to be in a different state. So I''d like to have something like class ModelATest < Test::Unit::TestCase fixtures :models_a # use file models_a.yml for table models ... end class ModelBTest < Test::Unit::TestCase fixtures :models_b # use file models_b.yml for table models ... end Thanks. Mike