This project is archived and is in readonly mode.

#4263 ✓resolved
ohforf

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.

https://rails.lighthouseapp.com/projects/8994/tickets/307-fixturecl...
https://rails.lighthouseapp.com/projects/8994/tickets/389-incorrect...

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages