summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole/codepage_spec.rb
blob: 4e0cf5ca5578a2c4c38e9c5367fc2d739c0d9cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
platform_is :windows do
  require_relative '../fixtures/classes'

  describe "WIN32OLE.codepage=" do
    it "sets codepage" do
      cp = WIN32OLE.codepage
      WIN32OLE.codepage = WIN32OLE::CP_UTF8
      WIN32OLE.codepage.should == WIN32OLE::CP_UTF8
      WIN32OLE.codepage = cp
    end
  end

end