ohforf
Not a member
ohforf's latest activity
Thursday, March 25 2010
4263
Unit test fails when using non-standard table names
was updated
in Ruby on Rails
-
- Tag changed from activerecord fixtures set_table_name set_fixture_class to activerecord set_table_name test
- Title changed from Unit test fail when using non-standard table names to Unit test fails when using non-standard table names
-
- Tag changed from activerecord set_table_name test to activerecord fixtures set_table_name set_fixture_class
You have to explicitly call the undocumented function set_fixture_class in the test helper to make the fixtures work again:
set_fixture_class :pears => "Fruit::...
Wednesday, March 24 2010
4263
Unit test fail when using non-standard table names
was created
in Ruby on Rails
-
ohforf created the ticket at 8:52 PMUsing set_table_name to set a custom table name causes unit tests to fail:
1) Error: test_myotherclass(MyotherclassTest):
ActiveRecord::StatementInvalid: SQLite...