Mailinglist Archive: yast-commit (477 mails)

< Previous Next >
[yast-commit] rest-service : branch, master, updated.
  • From: git version control <git@xxxxxxxxxxxxxxxx>
  • Date: Wed, 24 Jun 2009 14:47:52 +0200
  • Message-id: <E1MJRtI-0001yq-0z@xxxxxxxxxxxxxxxx>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "YaST web service".

The branch, master has been updated
via 39e9a4d5c90879d11d90037ed26b88f743425ec1 (commit)
from 7bee863d7008cd907cf6aa30e8764c5d6e2a94ad (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 39e9a4d5c90879d11d90037ed26b88f743425ec1
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Wed Jun 24 14:47:41 2009 +0200

Initial 'rake test' for network module

-----------------------------------------------------------------------

Summary of changes and diff:
.../test/functional/networks_controller_test.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/plugins/network/test/functional/networks_controller_test.rb
b/plugins/network/test/functional/networks_controller_test.rb
index 15563f9..82edf05 100644
--- a/plugins/network/test/functional/networks_controller_test.rb
+++ b/plugins/network/test/functional/networks_controller_test.rb
@@ -7,7 +7,8 @@ require 'mocha'
# Prevent contacting the system bus
# This looks ugly but the stubs(:initialize) below causes a warning
class Scr
- def initialize() end
+ def initialize
+ end
end

class NetworksControllerTest < ActionController::TestCase
@@ -17,6 +18,9 @@ class NetworksControllerTest < ActionController::TestCase
@request = ActionController::TestRequest.new
# http://railsforum.com/viewtopic.php?id=1719
@request.session[:account_id] = 1 # defined in fixtures
+
+ Scr.any_instance.stubs(:execute).with(["/sbin/yast2", "lan",
"list"]).returns({:stderr=>"lo\tlocal\neth0\texternal\n", :exit=>16,
:stdout=>""})
+
end

test "access index" do


hooks/post-receive
--
YaST web service
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >