Topic: tests for subclasses

When ever I create a subclass of a class the test automatically search for the table by the class name rather than their root class, how can I change this?

http://www.brianthecoder.com

Rails, Javascript, Actionscript and More.

Re: tests for subclasses

class Person < ActiveRecord::Base; end

class Employee < Person
  set_table_name :people
end


Chances are you don't want to be doing this, though. There's probably a better way. Can you explain what you are trying to do?