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.

Andreas Neuhaus's latest activity

Thursday, February 04 2010
3855 assert_template matches as a substring was updated in Ruby on Rails
  • Andreas Neuhaus
    • Tag set to assertions, assert_template, test, unit
    by Andreas Neuhaus at 9:46 PM

    assert_template matches the rendered template name as a substring

    E.g. if you do render :action => 'signup_failed', assert_template 'signup' passes.

    Is this con...

  • Andreas Neuhaus
    Andreas Neuhaus created the ticket at 9:42 PM
Sunday, January 04 2009
1527 For ActiveRecord models there should be a way to avoid calling memoized metho... was updated in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus commented at 11:51 AM

    The above workaround did not work for me (freeze was still calling memoize_all). However, the following worked for me:

    def freeze freeze_without_memoization end

Saturday, May 10 2008
10 Immediate flash values not accessible in tests was updated in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus commented at 5:07 PM

    Mmh, not sure. I guess I accidently mixed it up. I changed it back to @_session (attached patch updated).

    I'm not sure if the @_session check is needed anyway...

Friday, May 09 2008
10 Immediate flash values not accessible in tests was updated in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus commented at 10:29 PM

    Looks like my patched flash.rb wasn't aware of component processing. I'm not used to components, but they seem to work by calling process of the component's co...

Thursday, May 01 2008
76 Review/reopen Ticket #9 and #10 please was created in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus created the ticket at 2:04 PM

    Could somebody please review/reopen tickets #9 and #10 please? They have patches with fix and tests attached, but I think nobody noticed because the patches we...

Monday, April 21 2008
9 Adding records to a has_many collection does not work on initialization was updated in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus commented at 1:54 PM

    I think I finally tracked it down. It's the inspect method of AssociationProxy that does a reload if the target isn't loaded yet and therefore wipes the collec...

10 Immediate flash values not accessible in tests was updated in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus commented at 9:32 AM

    Attached a new patch where flash sweeping is done after assign_shortcuts, so that @_session can be checked. The previous patch had a problem accessing the sess...

Saturday, April 19 2008
10 Immediate flash values not accessible in tests was updated in Ruby on Rails
  • Andreas Neuhaus
    Andreas Neuhaus commented at 8:37 PM

    Ouch. Even though all tests pass fine, it seems that the flash isn't swept in real applications with this patch.

  • Andreas Neuhaus
    Andreas Neuhaus commented at 8:30 PM

    I dug a little deeper into this problem and found out, that the flash is swept in process_cleanup. A view can display immediate flash values, because it access...