Created
February 4, 2015 17:03
-
-
Save kyanny/2576ce8d9cb472a5cd5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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