Skip to content

Instantly share code, notes, and snippets.

@headius
Created December 16, 2012 19:40
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 headius/4311979 to your computer and use it in GitHub Desktop.
Save headius/4311979 to your computer and use it in GitHub Desktop.
require 'test/unit'
require 'test/test_helper'
require 'java'
# This tests JRuby-specific environment stuff, like JRUBY_VERSION
class TestEnv < Test::Unit::TestCase
include TestHelper
def test_bracket
100_000.times {
assert_raises(TypeError) {
tmp = ENV[1]
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment