Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'test/unit'
- class Strange<Test::Unit::TestCase
- def test_x
- assert_raises NameError do
- strange
- end
- begin
- strange = THIS_CONSTANT_IS_MISSING
- rescue NameError # we expect this
- end
- assert_nil strange
- end
- end
Add Comment
Please, Sign In to add comment