diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_fips.rb | 4 | ||||
-rw-r--r-- | test/rdoc/test_rdoc_comment.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_refinement.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/openssl/test_fips.rb b/test/openssl/test_fips.rb index f04e511d76..7d290feb7c 100644 --- a/test/openssl/test_fips.rb +++ b/test/openssl/test_fips.rb @@ -3,7 +3,7 @@ require_relative 'utils' if defined?(OpenSSL) && OpenSSL::OPENSSL_FIPS class OpenSSL::TestFIPS < Test::Unit::TestCase - + def test_reject_md5 data = "test" assert_not_nil(OpenSSL::Digest.new("MD5").digest(data)) @@ -36,7 +36,7 @@ class OpenSSL::TestFIPS < Test::Unit::TestCase end private - + def in_fips_mode OpenSSL.fips_mode = true yield diff --git a/test/rdoc/test_rdoc_comment.rb b/test/rdoc/test_rdoc_comment.rb index 1afc94c251..4d0d54edca 100644 --- a/test/rdoc/test_rdoc_comment.rb +++ b/test/rdoc/test_rdoc_comment.rb @@ -70,7 +70,7 @@ call-seq: comment = RDoc::Comment.new <<-COMMENT, @top_level # call-seq: # bla => true or false -# +#\s # moar comment COMMENT diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index fdaf7e8c46..1d5074fa66 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -563,7 +563,7 @@ class TestRefinement < Test::Unit::TestCase def recursive_length if empty? 0 - else + else self[1..-1].recursive_length + 1 end end |