Fixture accessor methods don't work with set_table_name because the
class name can't be inferred from the table name. I've created a patch
which fixes this (http://dev.rubyonrails.org/ticket/3935).
Please take a look and throw suggestions my way.
Here's the current usage for a model Joke which uses a table name of
funny_jokes:
class SetTableNameFixturesTest < Test::Unit::TestCase
set_fixture_class :funny_jokes => 'Joke'
fixtures :funny_jokes
def test_table_method
assert_kind_of Joke, funny_jokes(:a_joke)
end
end
Kev
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core