Skip to content

Commit da97ae4

Browse files
committed
[test] eliminate custom Base64 patch for test
1 parent 17413b3 commit da97ae4

File tree

3 files changed

+7
-26
lines changed

3 files changed

+7
-26
lines changed

Gemfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ source 'https://rubygems.org'
44
gemspec if defined? JRUBY_VERSION
55

66
gem "rake", require: false
7-
gem 'mocha', '~> 1.4', '< 2.0'
87

9-
# NOTE: runit-maven-plugin will use it's own :
10-
gem 'test-unit'
8+
group :test do
9+
gem 'base64', require: false
10+
gem 'mocha', '~> 1.4', '< 2.0'
11+
# NOTE: runit-maven-plugin will use it's own :
12+
gem 'test-unit'
13+
end

src/test/ruby/ec/base64.rb

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/test/ruby/ec/test_ec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# coding: US-ASCII
22
require File.expand_path('../test_helper', File.dirname(__FILE__))
3+
require 'base64'
34

45
class TestEC < TestCase
56

@@ -251,8 +252,6 @@ def test_random_point
251252
assert_equal point.to_octet_string(:uncompressed), point3.to_octet_string(:uncompressed)
252253
end
253254

254-
require File.expand_path('base64.rb', File.dirname(__FILE__))
255-
256255
def test_encrypt
257256
p256dh = "BNFege3oh74znsDbVkGf5CRAtLVUHlo5NTU9-inepE_HpUBWUq3FP_dJR-WDORPvKL7fM_AKyfYch-nKY7kDOe0="
258257
group_name = 'prime256v1'

0 commit comments

Comments
 (0)