summaryrefslogtreecommitdiff
path: root/test/win32ole/test_propertyputref.rb
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-18 11:34:53 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-18 11:34:53 +0000
commit33311b653cca4bb3ac0b209f3b7ce23e3e4defb8 (patch)
tree2104687d399a05465b48543099e25e2e351184bf /test/win32ole/test_propertyputref.rb
parent20afef590bf76cb1a65eb327b7582cce3b3b0565 (diff)
support PROPERTYPUTREF. [ruby-talk:183042]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_propertyputref.rb')
-rw-r--r--test/win32ole/test_propertyputref.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/win32ole/test_propertyputref.rb b/test/win32ole/test_propertyputref.rb
new file mode 100644
index 0000000..742a53b
--- /dev/null
+++ b/test/win32ole/test_propertyputref.rb
@@ -0,0 +1,19 @@
+require 'test/unit'
+require 'win32ole'
+
+class TestWIN32OLE_PROPERTYPUTREF < Test::Unit::TestCase
+ def setup
+ begin
+ @sapi = WIN32OLE.new('SAPI.SpVoice')
+ rescue WIN32OLERuntimeErro
+ @sapi = nil
+ end
+ end
+ def test_sapi
+ if @sapi
+ new_id = @sapi.getvoices.item(2).Id
+ @sapi.voice = @sapi.getvoices.item(2)
+ assert_equal(new_id, @sapi.voice.Id)
+ end
+ end
+end