Rake test_units and legacy model table names


#1

Hi
Running rake test_units, I get some errors:


test_truth(UserTest):
ActiveRecord::StatementInvalid: Table ‘epg_test.users’ doesn’t exist:
DELETE FROM users

epg_test.users does indeed not exist, but epg_test.userData does, as
specified in my User model:

class User < ActiveRecord::Base
set_table_name “userData”
end

Does the test ignore the setting of a new table name?

Thanks,
Tobias