Skip to content

Instantly share code, notes, and snippets.

@grumpit
Created December 11, 2012 18:20
Show Gist options
  • Save grumpit/4260807 to your computer and use it in GitHub Desktop.
Save grumpit/4260807 to your computer and use it in GitHub Desktop.
A Test::Unit::TestCase that passes - surprisingly.
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