---------------------- app/models/accountancy.rb ----------- class Accountancy < ActiveRecord::Base self.table_name = "egmaccylog" self.primary_key = "ID" end --------------------- test/unit/accountancy_test.rb ----------- require File.dirname(__FILE__) + ''/../test_helper'' class AccountancyTest < Test::Unit::TestCase fixtures :accountancies # Replace this with your real tests. def test_truth assert true end end --------------------------------------------------------------------------------- Running the truth unit test from C:\InstantRails\rails_apps\gms_jcm\test\unit>ruby accountancy_test.rb Loaded suite accountancy_test Started E Finished in 1.875 seconds. 1) Error: test_truth(AccountancyTest): ActiveRecord::StatementInvalid: Mysql::Error: Table ''gms_jcm_test.accountancies'' doesn''t exist: DELETE FROM accountancies <snip traceback> 1 tests, 0 assertions, 0 failures, 1 errors ----------------------------------------------------------------------------------- Someone suggested I use set_table_name instead of self.table_name but the same result. Does anyone know why the wrong table name is being used? Glenn. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---