Skip to content

Instantly share code, notes, and snippets.

@abriening
Created August 27, 2009 23:09
Show Gist options
  • Save abriening/176650 to your computer and use it in GitHub Desktop.
Save abriening/176650 to your computer and use it in GitHub Desktop.
# Sometimes tests just keep rolling on when you would really like
# them to die so you can inspect the database without teardown
# or the next setup
def test_something
x_it = proc{ puts "This test failed!"; Kernel.exit(1) }
class << x_it
def to_s; call; end
alias inspect to_s
end
assert_nil "not nil", x_it
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment