test/total/test_osx.rb in total-0.1.0 vs test/total/test_osx.rb in total-0.2.0
- old
+ new
@@ -34,6 +34,13 @@
skip unless RUBY_PLATFORM.include?('darwin')
linux = Total::OSX.new
assert(!linux.memory.nil?)
assert(linux.memory > 1024 * 1024)
end
+
+ def test_crashes_when_cant_detect
+ skip if RUBY_PLATFORM.include?('darwin')
+ assert_raises Total::CantDetect do
+ Total::OSX.new.memory
+ end
+ end
end