Forum: Ruby on Rails rake test_units and legacy model table names

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.
38349301fc317d7ec7ddd7959d73778f?d=identicon&s=25 tobias.neumann (Guest)
on 2005-11-27 21:22
(Received via mailing list)
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
This topic is locked and can not be replied to.