Sha256: 57f5a9133510ffecf701ccce96fdb2588537fc7fa924de120bb95f90dc9f475d

Contents?: true

Size: 635 Bytes

Versions: 2

Compression:

Stored size: 635 Bytes

Contents

#####################################################################
# tc_registry.rb
#
# Test case for the Windows::Registry module.
#####################################################################
require 'windows/registry'
require 'test/unit'

class RegistryFoo
   include Windows::Registry
end

class TC_Windows_Registry < Test::Unit::TestCase
   def setup
      @foo  = RegistryFoo.new
   end

   def test_numeric_constants
      assert_equal(0x80000000, RegistryFoo::HKEY_CLASSES_ROOT)
   end

   def test_method_constants
      assert_not_nil(RegistryFoo::RegCloseKey)
   end

   def teardown
      @foo  = nil
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
windows-pr-1.2.3 test/tc_registry.rb
windows-pr-1.1.3 test/tc_registry.rb