Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10289 (closed enhancement: fixed)

Opened 11 months ago

Last modified 6 months ago

[PATCH] Improve ActiveRecord::Base#table_name unit tests for nested classes

Reported by: scott_willson Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: minor Keywords: tiny,test,modules,namespace
Cc:

Description

Though the implementation code is clear enough, I wasn't able to figure out the intended table name convention for nested ActiveRecord models by looking at the code, Rdoc, tests, and generators. This patch adds another test that specs out the expected behavior more explicitly for the clueless among us.

Attachments

table_name_more_explicit_tests.diff (1.2 kB) - added by scott_willson on 11/26/07 19:49:39.

Change History

11/26/07 19:49:39 changed by scott_willson

  • attachment table_name_more_explicit_tests.diff added.

12/04/07 15:59:46 changed by josh

+1

12/18/07 09:57:09 changed by maruis

+1. It's good.

04/07/08 19:44:40 changed by josh

  • status changed from new to closed.
  • resolution set to fixed.

(In [9237]) Improve ActiveRecord::Base#table_name unit tests for nested classes. Closes #10289. [scott_willson]