Guest User

Untitled

a guest
Jun 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. require 'test/unit'
  2. class Strange<Test::Unit::TestCase
  3. def test_x
  4. assert_raises NameError do
  5. strange
  6. end
  7. begin
  8. strange = THIS_CONSTANT_IS_MISSING
  9. rescue NameError # we expect this
  10. end
  11. assert_nil strange
  12. end
  13. end
Add Comment
Please, Sign In to add comment