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.

Levin Alexander's latest activity

Sunday, June 27 2010
3176 Fixtures data should be reset between tests was updated in Ruby on Rails
  • Levin Alexander
    Levin Alexander commented at 8:17 PM

    The reason I think this ticket is a problem is that different test files can influence each other in unexpected ways. (running FooTest before BarTest will cause...

  • Levin Alexander
    Levin Alexander commented at 7:50 PM

    Got it, thanks.

    right now, if you're writing fixtures :table you are deleting fixtures also. The fix for this ticket would just need to shift this work from bef...

  • Levin Alexander
    Levin Alexander commented at 7:26 PM

    I am not convinced that this would slow down tests much. The fixtures need to be loaded in either case.
    I think (but don't know yet) that the slowdown should no...

Tuesday, December 29 2009
3551 [PATCH] ActiveRecord::AutosaveAssociation#unmark_for_destruction was updated in Ruby on Rails
  • Levin Alexander
    Levin Alexander commented at 5:02 AM

    Short version of the above:

    I want to implement :destroy_missing, and mark_for_destruction = false/unmark_for_destruction would give me a nice way to do this.

Monday, December 28 2009
3551 [PATCH] ActiveRecord::AutosaveAssociation#unmark_for_destruction was updated in Ruby on Rails
  • Levin Alexander
    Levin Alexander commented at 9:05 PM

    Joshua White proposed :destroy_missing in Ticket #2563 which addresses this use case. (I'd still like this Patch to be applied because I'm not using nested_attr...

  • Levin Alexander
    Levin Alexander commented at 8:21 PM

    I have a widget with many parts. I am using (something like) nested attributes, but don't want to have to send _delete-attributes when a part is deleted. Instea...

Tuesday, December 08 2009
3551 [PATCH] ActiveRecord::AutosaveAssociation#unmark_for_destruction was updated in Ruby on Rails
  • Levin Alexander
    • Tag changed from 2.3.x, activerecord, autosave_association, marked_for_destruction to 2.3.x, activerecord, autosave_association, marked_for_destruction, patch
    • Title changed from ActiveRecord::AutosaveAssociation#unmark_for_destruction to [PATCH] ActiveRecord::AutosaveAssociation#unmark_for_destruction
    by Levin Alexander at 5:00 PM
  • Levin Alexander
    Levin Alexander created the ticket at 4:49 PM

    It should be possible to decide to keep an element that has already been marked for destruction (My use case is that I want do delete everything in an associati...

Monday, November 30 2009
3176 Fixtures data should be reset between tests was updated in Ruby on Rails
  • Levin Alexander
    • Tag set to 2.3.x, activerecord, fixtures, testunit
    by Levin Alexander at 7:10 PM
  • Levin Alexander
    • Tag cleared.
    by Levin Alexander at 7:09 PM

    I can't verify that the issue is fixed in 2.3.5.

    The test code in the gist still shows that Fixtures are not purged after tests are run.