Unit "truth" test fails on InstantRails with legacy database

---------------------- 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

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.