ref: refs/heads/master
commit 0651163ff5a70a07e12b9b94c51f7a68178b72db
Author: Klaus Kämpf
Date: Fri Sep 25 12:51:15 2009 +0200
Pass the correct object to DBus::ProxyObjectInterface.new
---
plugins/patches/test/packagekit_stub.rb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/plugins/patches/test/packagekit_stub.rb b/plugins/patches/test/packagekit_stub.rb
index 521394c..103d7b1 100644
--- a/plugins/patches/test/packagekit_stub.rb
+++ b/plugins/patches/test/packagekit_stub.rb
@@ -73,7 +73,7 @@ class PackageKitStub
#
# PackageKit transaction interface
#
- transaction_iface = DBus::ProxyObjectInterface.new(pk_service, TRANSACTION)
+ transaction_iface = DBus::ProxyObjectInterface.new(transaction_proxy, TRANSACTION)
# stub: transaction_iface = transaction_proxy["org.freedesktop.PackageKit.Transaction"]
transaction_proxy[TRANSACTION] = transaction_iface
@@ -84,6 +84,9 @@ class PackageKitStub
# stub: transaction_iface.GetUpdates("NONE")
transaction_iface.stubs(:GetUpdates).with("NONE").returns(true)
+ # stub: transaction_iface.SearchName(...)
+ transaction_iface.stubs(:SearchName).returns(true)
+
end # stub !
end # PackageKitStub
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org