Sha256: 7f580621c61934edd253b53a700b9c7b1769cd81154d239f11c214e296bf4835
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require 'builder/xchar' class TestNameCollisions < Test::Unit::TestCase module Collide def xchr end end def test_no_collision assert_nothing_raised do Builder.check_for_name_collision(Collide, :not_defined) end end def test_collision assert_raise RuntimeError do Builder.check_for_name_collision(Collide, "xchr") end end def test_collision_with_symbol assert_raise RuntimeError do Builder.check_for_name_collision(Collide, :xchr) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bigfleet-builder-2.2.1 | test/test_namecollision.rb |