Sha256: 0f53cdcebfed9d40e25f33950ed5f3e295bccc1622124bfd94852fe913d44fad
Contents?: true
Size: 822 Bytes
Versions: 13
Compression:
Stored size: 822 Bytes
Contents
##################################################################### # tc_registry.rb # # Test case for the Windows::Registry module. ##################################################################### base = File.basename(Dir.pwd) if base == 'test' || base =~ /windows-pr/ Dir.chdir '..' if base == 'test' $LOAD_PATH.unshift Dir.pwd + '/lib' Dir.chdir 'test' rescue nil end require 'windows/registry' require 'test/unit' class Foo include Windows::Registry end class TC_Windows_Registry < Test::Unit::TestCase def setup @foo = Foo.new end def test_numeric_constants assert_equal(0x80000000, Foo::HKEY_CLASSES_ROOT) end def test_method_constants assert_not_nil(Foo::RegCloseKey) end def teardown @foo = nil end end
Version data entries
13 entries across 13 versions & 1 rubygems