1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/win32ole/win32ole/constants_spec.rb
eregon 401b64c4e8 Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-04 15:09:32 +00:00

44 lines
954 B
Ruby

require_relative '../fixtures/classes'
platform_is :windows do
require 'win32ole'
describe "WIN32OLE class" do
it "defines constant CP_ACP" do
WIN32OLE::CP_ACP.should == 0
end
it "defines constant CP_OEMCP" do
WIN32OLE::CP_OEMCP.should == 1
end
it "defines constant CP_MACCP" do
WIN32OLE::CP_MACCP.should == 2
end
it "defines constant CP_THREAD_ACP" do
WIN32OLE::CP_THREAD_ACP.should == 3
end
it "defines constant CP_SYMBOL" do
WIN32OLE::CP_SYMBOL.should == 42
end
it "defines constant CP_UTF7" do
WIN32OLE::CP_UTF7.should == 65000
end
it "defines constant CP_UTF8" do
WIN32OLE::CP_UTF8.should == 65001
end
it "defines constant LOCALE_SYSTEM_DEFAULT" do
WIN32OLE::LOCALE_SYSTEM_DEFAULT.should == 0x0800
end
it "defines constant LOCALE_USER_DEFAULT" do
WIN32OLE::LOCALE_USER_DEFAULT.should == 0x0400
end
end
end