Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

ohforf's latest activity

Thursday, March 25 2010
4263 Unit test fails when using non-standard table names was updated in Ruby on Rails
  • ohforf
    • 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
    by ohforf at 4:21 PM
  • ohforf
    • Tag changed from activerecord set_table_name test to activerecord fixtures set_table_name set_fixture_class
    by ohforf at 4:21 PM

    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
    ohforf created the ticket at 8:52 PM

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

    1) Error: test_myotherclass(MyotherclassTest):
    ActiveRecord::StatementInvalid: SQLite...