Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> patch_refactor : Pass the correct object to DBus::ProxyObjectInterface.new
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Fri, 25 Sep 2009 12:51:15 +0200
  • Message-id: <E1Mr8is-0005Eb-Lf@xxxxxxxxxxxxxxxx>
ref: refs/heads/patch_refactor
commit 0651163ff5a70a07e12b9b94c51f7a68178b72db
Author: Klaus Kämpf <kkaempf@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages