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.

test bug

#25
  def test_open_io_opens_filepath_and_passes_file_to_block
    # not a great test....
    s = IoSample.new
    
    was_in_block = false
    s.send(:open_io, 2) do |io|
      assert_equal $stdout.stat.dev, io.stat.dev
      assert $stdout.object_id != io.object_id
      was_in_block = true
    end

    assert was_in_block
  end

First the integer should be 1, not 2 (this doesn't cause an error on mac, for some reason). Second this is a bad test.

Reported by bahuvrihi · May 25th, 2009 @ 11:55 AM

State: resolved
Milestone: none
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • Assigned user set to bahuvrihi
    • State changed from new to resolved

    May 25th, 2009 @ 12:02 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.