Permalink
Browse files

Changed some Fixnum checks to Numeric, and allow the possibility of n…

…il in some tests.
  • Loading branch information...
1 parent 17925c2 commit f586c15500ec784de3b222c0ab360530c2dce17d @djberg96 committed Apr 30, 2014
Showing with 7 additions and 7 deletions.
  1. +7 −7 test/test_sys_proctable_linux.rb
@@ -42,7 +42,7 @@ def test_environ
def test_exe
assert_respond_to(@ptable, :exe)
- assert_kind_of(String, @ptable.exe)
+ assert_kind_of([NilClass, String], @ptable.exe)
end
def test_fd
@@ -52,7 +52,7 @@ def test_fd
def test_root
assert_respond_to(@ptable, :root)
- assert_kind_of(String, @ptable.root)
+ assert_kind_of([NilClass, String], @ptable.root)
end
def test_pid
@@ -97,7 +97,7 @@ def test_tpgid
def test_flags
assert_respond_to(@ptable, :flags)
- assert_kind_of(Fixnum, @ptable.flags)
+ assert_kind_of(Numeric, @ptable.flags)
end
def test_minflt
@@ -212,7 +212,7 @@ def test_blocked
def test_sigignore
assert_respond_to(@ptable, :sigignore)
- assert_kind_of(Fixnum, @ptable.sigignore)
+ assert_kind_of(Numeric, @ptable.sigignore)
end
def test_sigcatch
@@ -227,17 +227,17 @@ def test_wchan
def test_nswap
assert_respond_to(@ptable, :nswap)
- assert_kind_of(Fixnum, @ptable.nswap)
+ assert_kind_of(Numeric, @ptable.nswap)
end
def test_cnswap
assert_respond_to(@ptable, :cnswap)
- assert_kind_of(Fixnum, @ptable.cnswap)
+ assert_kind_of(Numeric, @ptable.cnswap)
end
def test_exit_signal
assert_respond_to(@ptable, :exit_signal)
- assert_kind_of(Fixnum, @ptable.exit_signal)
+ assert_kind_of(Numeric, @ptable.exit_signal)
end
def test_processor

0 comments on commit f586c15

Please sign in to comment.