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.

fixtures: consider fixture_class_names to find fixture_class file

#675

Fixtures allows to map table names on class names/classes, but doesn't use this mapping when trying to load a class. This leads to a needless log entry.

Reported by pelzrutsche · July 22nd, 2008 @ 04:20 PM

State: stale
Milestone: 3.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to incomplete
    • Tag changed from activerecord, fixtures, tested to activerecord, fixtures, patch, tested

    Patch is missing tests.

    July 23rd, 2008 @ 12:18 AM

  2. pelzrutsche
    pelzrutsche
    • Tag changed from activerecord, fixtures, patch, tested to activerecord, fixtures, patch, tested, tests

    Enhenced require_fixture_classes and added test.

    July 24th, 2008 @ 11:18 AM

  3. Pratik
    Pratik
    • State changed from incomplete to open
    • Assigned user set to Pratik

    July 24th, 2008 @ 11:24 AM

  4. Pratik
    Pratik
    • State changed from open to incomplete

    Hey,

    This is making AR tests fail with the following error :

    "./test/cases/../../lib/active_record/fixtures.rb:878:in const_defined?': wrong constant name Warehouse-thing (NameError)"

    Try to run 'rake test_sqlite3' from activerecord/ dir

    October 4th, 2008 @ 02:54 PM

  5. Paul Hinze
    Paul Hinze
    • Tag changed from activerecord, fixtures, patch, tested, tests to 2-3-stable, 2.3, activerecord, fixtures, master, patch, tested, tests

    Seeing this issue myself. I updated the patch to apply against current git master, and I fixed the wrong constant name problem, but I'm not sure about the patch itself. The test it adds now fails.

    I need to context switch, but I'll see if I can look into it again sometime soon. Pretty sure this is still an issue in git master though.

    July 6th, 2009 @ 09:16 PM

  6. kmpm
    kmpm

    This seems related to #1628 "Loading fixtures for a module's model"

    July 27th, 2009 @ 11:10 AM

  7. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  8. Santiago Pastorino
    Santiago Pastorino
    • State changed from incomplete to open
    • Tag changed from 2-3-stable, 2.3, activerecord, fixtures, master, patch, tested, tests to 2-3-stable, 23, activerecord, fixtures, master, patch, tested, tests
    • Importance changed from to

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 05:05 PM

  9. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 05:05 PM

  10. gfh