test/total/test_osx.rb in total-0.0.0 vs test/total/test_osx.rb in total-0.1.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true # (The MIT License) # -# Copyright (c) 2018-2023 Yegor Bugayenko +# Copyright (c) 2018 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -25,22 +25,15 @@ require 'minitest/autorun' require_relative '../../lib/total/osx' # OSX test. # Author:: Yegor Bugayenko (yegor256@gmail.com) -# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko +# Copyright:: Copyright (c) 2018 Yegor Bugayenko # License:: MIT class OSXTest < Minitest::Test def test_fetch_memory_size 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