diff options
-rw-r--r-- | test/test_securerandom.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb index ab96952e37..f9130ab81e 100644 --- a/test/test_securerandom.rb +++ b/test/test_securerandom.rb @@ -1,7 +1,6 @@ # frozen_string_literal: false require 'test/unit' require 'securerandom' -require 'tempfile' # This testcase does NOT aim to test cryptographically strongness and randomness. class TestSecureRandom < Test::Unit::TestCase @@ -156,24 +155,6 @@ end end end - def protect - begin - yield - rescue NotImplementedError - # ignore - end - end - - def remove_feature(basename) - $LOADED_FEATURES.delete_if { |path| - if File.basename(path) == basename - $LOAD_PATH.any? { |dir| - File.exist?(File.join(dir, basename)) - } - end - } - end - def assert_in_range(range, result, mesg = nil) assert(range.cover?(result), build_message(mesg, "Expected #{result} to be in #{range}")) end |