diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-04 15:09:32 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-04 15:09:32 +0000 |
commit | 401b64c4e840bc8887219e9e445a64b3d5943656 (patch) | |
tree | 989b93914e9a8ee57ef3ce0bb3d2e2083470fc49 /spec/ruby/library/openssl/random | |
parent | 8a15857a7f283101a3923b76c71a1f05bfe58512 (diff) |
Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/openssl/random')
-rw-r--r-- | spec/ruby/library/openssl/random/pseudo_bytes_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/openssl/random/random_bytes_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/openssl/random/shared/random_bytes.rb | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/openssl/random/pseudo_bytes_spec.rb b/spec/ruby/library/openssl/random/pseudo_bytes_spec.rb index 83c8cc13c8..c5e450ce3d 100644 --- a/spec/ruby/library/openssl/random/pseudo_bytes_spec.rb +++ b/spec/ruby/library/openssl/random/pseudo_bytes_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../shared/random_bytes.rb', __FILE__) +require_relative '../../../spec_helper' +require_relative 'shared/random_bytes' if defined?(OpenSSL::Random.pseudo_bytes) describe "OpenSSL::Random.pseudo_bytes" do diff --git a/spec/ruby/library/openssl/random/random_bytes_spec.rb b/spec/ruby/library/openssl/random/random_bytes_spec.rb index b8bd209eb0..2678885da4 100644 --- a/spec/ruby/library/openssl/random/random_bytes_spec.rb +++ b/spec/ruby/library/openssl/random/random_bytes_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../shared/random_bytes.rb', __FILE__) +require_relative '../../../spec_helper' +require_relative 'shared/random_bytes' describe "OpenSSL::Random.random_bytes" do it_behaves_like :openssl_random_bytes, :random_bytes diff --git a/spec/ruby/library/openssl/random/shared/random_bytes.rb b/spec/ruby/library/openssl/random/shared/random_bytes.rb index 399e40de39..3a3a6b2bc4 100644 --- a/spec/ruby/library/openssl/random/shared/random_bytes.rb +++ b/spec/ruby/library/openssl/random/shared/random_bytes.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'openssl' describe :openssl_random_bytes, shared: true do |cmd| |