Created
December 11, 2012 18:20
-
-
Save grumpit/4260807 to your computer and use it in GitHub Desktop.
A Test::Unit::TestCase that passes - surprisingly.
This file contains hidden or 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 'test/unit' | |
class SampleTest < Test::Unit::TestCase | |
def test_ | |
end | |
end | |
# Returns the following | |
# EDIT - ruby 1.9.3p125 | |
Started | |
. | |
Finished in 0.000284 seconds. | |
1 tests, 0 assertions, 0 failures, 0 errors | |
# Should it not return this? Same as if you just have def test end ? | |
Started | |
F | |
Finished in 0.001297 seconds. | |
1) Failure: | |
default_test:4 | |
No tests were specified. | |
1 tests, 1 assertions, 1 failures, 0 errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment