This project is archived and is in readonly mode.

#4263 ✓resolved

Unit test fails when using non-standard table names

Reported by ohforf | March 24th, 2010 @ 08:52 PM | in 3.0.2

Using set_table_name to set a custom table name causes unit tests to fail:

1) Error: test_myotherclass(MyotherclassTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: myrecords: DELETE FROM "myrecords" WHERE 1=1

Of course there is no such table, since I did a “set_table_name 'my_fancy_tablename'” in class Myrecord.

This error has been reported in tickets #389 and #307. These tickets have been marked as spam.

The author of ticket #389 writes “patch included”, however I'm unable to view this patch.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>