summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole/codepage_spec.rb
blob: 07e93646ac7ba9186913c73c62c5e03e4361c08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative "../../../spec_helper"
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