summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole/constants_spec.rb
blob: 978b7ade92759bd61ccb9d35decdb7a79b13a915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
platform_is :windows do
  require_relative '../fixtures/classes'

  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