diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-05 22:50:55 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-05 23:13:23 +0900 |
commit | bbfefd45c6c99c4371cc0789bdd1da9ea3ade701 (patch) | |
tree | 000592687e4a9ab678e5d247d4291b4c4e95307b | |
parent | 00a941ac4bb5520a412bcd70ecc8a65fd1e21a5b (diff) |
[ruby/securerandom] Remove no longer used helper methods
Unused since r59801, 782b2050b837206d06767d42d0ea5117921247c8,
or https://github.com/ruby/securerandom/commit/52c8e7a85e017f.
https://github.com/ruby/securerandom/commit/38fc2c4427
-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 |