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.

There was a problem

You must be a member of this account.

Grant Rodgers's latest activity

Thursday, March 26 2009
2342 OrderedHash#shift should return nil when empty was updated in Ruby on Rails
  • Grant Rodgers
    Grant Rodgers commented at 6:37 PM

    Agreed, I stuffed it into the existing test because it looked like the convention was one test per method. Updated patch attached.

  • Grant Rodgers
    • Title changed from [PATCH]OrderedHash#shift should return nil when empty to OrderedHash#shift should return nil when empty
    by Grant Rodgers at 2:58 AM
  • Grant Rodgers
    Grant Rodgers created the ticket at 2:58 AM

    Prior to 2.3, OrderedHash#shift returned nil when empty. In 2.3 it returns [nil, nil]. Hash#shift returns nil in 1.8 and 1.9, so OrderedHash#shift should also.

    ...