sys-proctable 1.1.0-universal-mingw32 → 1.1.1-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_sys_top.rb CHANGED
@@ -1,65 +1,65 @@
1
- ##############################################################################
2
- # test_sys_top.rb
3
- #
4
- # Test suite for the sys-top library that is included with this distribution.
5
- #
6
- # Tests omitted on OSX until I figure out how to get pctcpu information.
7
- ##############################################################################
8
- require 'test-unit'
9
- require 'sys/top'
10
-
11
- class TC_Top < Test::Unit::TestCase
12
- include Sys
13
-
14
- def setup
15
- @osx = RbConfig::CONFIG['host_os'] =~ /darwin/i
16
- end
17
-
18
- test "top version" do
19
- assert_equal('1.0.4', Top::VERSION)
20
- end
21
-
22
- test "top basic functionality" do
23
- assert_respond_to(Top, :top)
24
- end
25
-
26
- test "top works with no arguments" do
27
- omit_if(@osx)
28
- assert_nothing_raised{ Top.top }
29
- end
30
-
31
- test "top accepts optional arguments" do
32
- omit_if(@osx)
33
- assert_nothing_raised{ Top.top(5) }
34
- assert_nothing_raised{ Top.top(5, 'cmdline') }
35
- end
36
-
37
- test "top with no arguments returns expected results" do
38
- omit_if(@osx)
39
- assert_equal(10, Top.top.length)
40
- assert_kind_of(Struct::ProcTableStruct, Top.top.first)
41
- end
42
-
43
- test "top with size argument returns expected result" do
44
- omit_if(@osx)
45
- assert_equal(5, Top.top(5).length)
46
- end
47
-
48
- test "top with size and sort_by argument returns expected result" do
49
- omit_if(@osx)
50
- assert_equal(5, Top.top(5, :cmdline).length)
51
- end
52
-
53
- test "top returns an array" do
54
- omit_if(@osx)
55
- assert_kind_of(Array, Top.top)
56
- end
57
-
58
- test "top accepts a maximum of two arguments" do
59
- assert_raises(ArgumentError){ Top.top(1, 'foo', 2) }
60
- end
61
-
62
- def teardown
63
- @osx = nil
64
- end
65
- end
1
+ ##############################################################################
2
+ # test_sys_top.rb
3
+ #
4
+ # Test suite for the sys-top library that is included with this distribution.
5
+ #
6
+ # Tests omitted on OSX until I figure out how to get pctcpu information.
7
+ ##############################################################################
8
+ require 'test-unit'
9
+ require 'sys/top'
10
+
11
+ class TC_Top < Test::Unit::TestCase
12
+ include Sys
13
+
14
+ def setup
15
+ @osx = RbConfig::CONFIG['host_os'] =~ /darwin/i
16
+ end
17
+
18
+ test "top version" do
19
+ assert_equal('1.0.4', Top::VERSION)
20
+ end
21
+
22
+ test "top basic functionality" do
23
+ assert_respond_to(Top, :top)
24
+ end
25
+
26
+ test "top works with no arguments" do
27
+ omit_if(@osx)
28
+ assert_nothing_raised{ Top.top }
29
+ end
30
+
31
+ test "top accepts optional arguments" do
32
+ omit_if(@osx)
33
+ assert_nothing_raised{ Top.top(5) }
34
+ assert_nothing_raised{ Top.top(5, 'cmdline') }
35
+ end
36
+
37
+ test "top with no arguments returns expected results" do
38
+ omit_if(@osx)
39
+ assert_equal(10, Top.top.length)
40
+ assert_kind_of(Struct::ProcTableStruct, Top.top.first)
41
+ end
42
+
43
+ test "top with size argument returns expected result" do
44
+ omit_if(@osx)
45
+ assert_equal(5, Top.top(5).length)
46
+ end
47
+
48
+ test "top with size and sort_by argument returns expected result" do
49
+ omit_if(@osx)
50
+ assert_equal(5, Top.top(5, :cmdline).length)
51
+ end
52
+
53
+ test "top returns an array" do
54
+ omit_if(@osx)
55
+ assert_kind_of(Array, Top.top)
56
+ end
57
+
58
+ test "top accepts a maximum of two arguments" do
59
+ assert_raises(ArgumentError){ Top.top(1, 'foo', 2) }
60
+ end
61
+
62
+ def teardown
63
+ @osx = nil
64
+ end
65
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-proctable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
31
31
  tGSHgAmcLlkdGgan182qsE/4kKM=
32
32
  -----END CERTIFICATE-----
33
- date: 2016-06-27 00:00:00.000000000 Z
33
+ date: 2016-07-01 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: test-unit
metadata.gz.sig CHANGED
Binary file