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.

expected value should come first in assert_equal

#4630

In the following test expected value should come first and the value being tested later.

def test_pooled_connection_checkout
   checkout_connections
   assert_equal @connections.length, 2
   assert_equal @timed_out, 2
 end

patch will be provided through comment.

Reported by Neeraj Singh · May 17th, 2010 @ 09:34 PM

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

Activity

  1. Neeraj Singh
    Neeraj Singh
    • Tag changed from activerecord, rails3 to activerecord, patch, rails3

    Attached is patch against rails edge.

    May 17th, 2010 @ 09:51 PM

  2. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    +1

    Applies cleanly to master. And yes, the expected value should come first. :)

    May 17th, 2010 @ 10:51 PM

  3. Repository