Skip to content

Instantly share code, notes, and snippets.

@kyanny
Created February 4, 2015 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyanny/2576ce8d9cb472a5cd5f to your computer and use it in GitHub Desktop.
Save kyanny/2576ce8d9cb472a5cd5f to your computer and use it in GitHub Desktop.
require 'minitest/autorun'
class TestFoo < MiniTest::Test
def setup
print "foo"
end
end
class TestBar < TestFoo
def setup
super
print 'bar'
end
def test_bar
end
end
class TestBaz < TestFoo
def setup
print 'baz'
super
end
def test_baz
end
end
# $ ruby test.rb
# Run options: --seed 39605
#
# # Running:
#
# foobar.bazfoo.
#
# Finished in 0.001615s, 1238.3901 runs/s, 0.0000 assertions/s.
#
# 2 runs, 0 assertions, 0 failures, 0 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment