Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> basesystem : mock for speedup
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Thu, 27 Aug 2009 16:47:51 +0200
  • Message-id: <E1Mj7KZ-0002pI-U7@xxxxxxxxxxxxxxxx>
ref: refs/heads/basesystem
commit 8ca0ed0aca0e453c24a163ee346c123aebe1c052
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
Date: Thu Aug 27 16:47:51 2009 +0200

mock for speedup
---
.../test/functional/security_controller_test.rb | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/plugins/securities/test/functional/security_controller_test.rb
b/plugins/securities/test/functional/security_controller_test.rb
index aa5e8ac..a8c26d5 100644
--- a/plugins/securities/test/functional/security_controller_test.rb
+++ b/plugins/securities/test/functional/security_controller_test.rb
@@ -6,6 +6,12 @@ class SecurityControllerTest < ActionController::TestCase
@controller = SecuritiesController.new
@request = ActionController::TestRequest.new
# http://railsforum.com/viewtopic.php?id=1719
+
+ Security.any_instance.stubs(:update).returns(true)
+ Security.any_instance.stubs(:ssh).returns(true)
+ Security.any_instance.stubs(:firewall).returns(false)
+ Security.any_instance.stubs(:firewall_after_startup).returns(true)
+ Security.any_instance.stubs(:save).returns(true)
end

def test_actions_not_logged_in
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages