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.

This project is archived and is in readonly mode.

Incorrect table_name evaluation in tests when using legacy database

#389

in app/models/product.rb:


class Product < ActiveRecord::Base
  set_table_name "product_legacy_table"
end

~/sandbox$ rake test ...skiped... 1) Error: test_truth(ProductTest): ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: products: DELETE FROM "products" WHERE 1=1 ...skiped...

Patch included

Reported by Yuriy Hrytsyuk · June 11th, 2008 @ 02:02 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Tag set to 2.1, activerecord, bug, patch, tests
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 6th, 2010 @ 06:44 AM