Skip to content

Instantly share code, notes, and snippets.

@janfri
Created August 18, 2009 09:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save janfri/169636 to your computer and use it in GitHub Desktop.
def safe_assert_equal expected, actual
assert_equal expected, actual
rescue Exception=>e
puts e
end
class Testable < Test::Unit::TestCase
def test_something
safe_assert_equal 1, 2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment