Ruby testing: printing inside a test case

Posted by marienbad on Stack Overflow See other posts from Stack Overflow or by marienbad
Published on 2010-06-12T06:32:48Z Indexed on 2010/06/12 6:43 UTC
Read the original article Hit count: 277

Filed under:
|

I'm brand new to Ruby testing and Google isn't helping.

Using Test/Unit, how can I print an instance variable, like

test "thing to happen" do
  do_stuff
  assert_equal "foo", @variable
  p @varible
end

© Stack Overflow or respective owner

Related posts about ruby

Related posts about unit-testing