Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <rest-service> master : commited broken test
  • From: Bjoern Geuken <bgeuken@xxxxxxx>
  • Date: Wed, 8 Jul 2009 14:59:12 +0200
  • Message-id: <E1MOWk7-0004Z0-Fb@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 2e6c0fae0c90aa42e0979e8d0dca332c0e5909dc
Author: Bjoern Geuken <bgeuken@xxxxxxx>
Date: Wed Jul 8 14:59:12 2009 +0200

commited broken test
---
plugins/status/test/unit/status_test.rb | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/plugins/status/test/unit/status_test.rb
b/plugins/status/test/unit/status_test.rb
new file mode 100644
index 0000000..8d209f8
--- /dev/null
+++ b/plugins/status/test/unit/status_test.rb
@@ -0,0 +1,23 @@
+require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
+require 'scr'
+require 'mocha'
+require 'test_helper'
+
+class StatusTest < ActiveSupport::TestCase
+# fixtures :accounts
+ def setup
+# @controller = SecuritiesController.new
+# @request = ActionController::TestRequest.new
+ # http://railsforum.com/viewtopic.php?id=1719
+ end
+=begin
+ def test_vailable_metrics
+ IO.stubs(:popen).with("ls random_path").returns("cpu memory")
+ IO.stubs(:popen).with("ls random_path/cpu").returns("idle")
+ IO.stubs(:popen).with("ls random_path/memory").returns("free buffered
used")
+
+ status = Status.new
+ assert status.available_metrics {"cpu" => {:rrds => "idle"}, "memory" =>
{:rrds => "free buffered used"}}
+ end
+=end
+end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages