test bug
Reported by bahuvrihi | May 25th, 2009 @ 11:55 AM
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.
Comments and changes to this ticket
-
bahuvrihi May 25th, 2009 @ 12:02 PM
- Assigned user set to bahuvrihi
- State changed from new to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Class configurations that map to the command line.