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

Version Path
windows-pr-0.5.2-mswin32 test/tc_registry.rb
windows-pr-0.5.1-mswin32 test/tc_registry.rb
windows-pr-0.5.0-mswin32 test/tc_registry.rb
windows-pr-0.5.3 test/tc_registry.rb
windows-pr-0.6.0 test/tc_registry.rb
windows-pr-0.6.3 test/tc_registry.rb
windows-pr-0.6.4 test/tc_registry.rb
windows-pr-0.6.5 test/tc_registry.rb
windows-pr-0.6.6 test/tc_registry.rb
windows-pr-0.7.0 test/tc_registry.rb
windows-pr-0.6.2 test/tc_registry.rb
windows-pr-0.5.4 test/tc_registry.rb
windows-pr-0.5.5 test/tc_registry.rb