Changeset 9237
- Timestamp:
- 04/07/08 19:44:37 (8 months ago)
- Files:
-
- trunk/activerecord/test/cases/modules_test.rb (modified) (1 diff)
- trunk/activerecord/test/models/company_in_module.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/test/cases/modules_test.rb
r8681 r9237 32 32 end 33 33 34 def test_table_name 35 assert_equal 'accounts', MyApplication::Billing::Account.table_name, 'table_name for ActiveRecord model in module' 36 assert_equal 'companies', MyApplication::Business::Client.table_name, 'table_name for ActiveRecord model subclass' 37 assert_equal 'company_contacts', MyApplication::Business::Client::Contact.table_name, 'table_name for ActiveRecord model enclosed by another ActiveRecord model' 38 end 34 39 end trunk/activerecord/test/models/company_in_module.rb
r8657 r9237 18 18 belongs_to :firm, :foreign_key => "client_of" 19 19 belongs_to :firm_with_other_name, :class_name => "Firm", :foreign_key => "client_of" 20 21 class Contact < ActiveRecord::Base; end 20 22 end 21 23