Skip to content

Instantly share code, notes, and snippets.

@sassembla
Created October 29, 2011 01:26
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 sassembla/1323962 to your computer and use it in GitHub Desktop.
Save sassembla/1323962 to your computer and use it in GitHub Desktop.
Simple TestUnit(will evaluate when run)
require 'test/unit'
class MyTest < Test::Unit::TestCase
def test_myTestCase
test = "here comes"
# test = nil
assert(test, msg = (nomsg = true;nil))
end
end
@sassembla
Copy link
Author

実行時、Failureが出る場合の出力は下記

Loaded suite /Users/sassembla/Desktop/untitled
Started
F
Finished in 0.007399 seconds.

  1) Failure:
test_myTestCase:8
is not true.

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