Skip to content

Instantly share code, notes, and snippets.

@cvshepherd
Created December 27, 2011 13:11
Show Gist options
  • Save cvshepherd/1523619 to your computer and use it in GitHub Desktop.
Save cvshepherd/1523619 to your computer and use it in GitHub Desktop.
Minitap issue with puts in tested method
require 'minitap'
MiniTest::Unit.runner = MiniTest::TapJ.new
require 'minitest/autorun'
require 'active_support/core_ext' # why do i have to require this?
class TestThis < MiniTest::Unit::TestCase
def my_method
puts "this will break tapout because of malformed output"
true
end
def test_broken
assert my_method
end
end
{"type":"suite","start":"2011-12-27 14:08:46","count":1,"seed":12262,"rev":3}
{"type":"case","subtype":"","label":"TestThis","level":0}
this will break tapout because of malformed output
{"type":"test","subtype":"","status":"pass","label":"test_broken","time":0.000294929}
{"type":"final","time":0.000395902,"counts":{"total":1,"pass":1,"fail":0,"error":0,"omit":0,"todo":0}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment