diff options
Diffstat (limited to 'spec/rubyspec/library/win32ole/win32ole/codepage_spec.rb')
-rw-r--r-- | spec/rubyspec/library/win32ole/win32ole/codepage_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/rubyspec/library/win32ole/win32ole/codepage_spec.rb b/spec/rubyspec/library/win32ole/win32ole/codepage_spec.rb new file mode 100644 index 0000000000..c84593871d --- /dev/null +++ b/spec/rubyspec/library/win32ole/win32ole/codepage_spec.rb @@ -0,0 +1,15 @@ +require File.expand_path('../../fixtures/classes', __FILE__) + +platform_is :windows do + require 'win32ole' + + 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 |