1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Move certificates to test/net/fixtures/.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2016-11-19 02:37:39 +00:00
parent 1029d32c7f
commit fc446ac016
6 changed files with 9 additions and 9 deletions

View file

@ -8,9 +8,9 @@ require "tempfile"
class FTPTest < Test::Unit::TestCase class FTPTest < Test::Unit::TestCase
SERVER_ADDR = "127.0.0.1" SERVER_ADDR = "127.0.0.1"
CA_FILE = File.expand_path("../imap/cacert.pem", __dir__) CA_FILE = File.expand_path("../fixtures/cacert.pem", __dir__)
SERVER_KEY = File.expand_path("../imap/server.key", __dir__) SERVER_KEY = File.expand_path("../fixtures/server.key", __dir__)
SERVER_CERT = File.expand_path("../imap/server.crt", __dir__) SERVER_CERT = File.expand_path("../fixtures/server.crt", __dir__)
def setup def setup
@thread = nil @thread = nil

View file

@ -4,9 +4,9 @@ require "net/imap"
require "test/unit" require "test/unit"
class IMAPTest < Test::Unit::TestCase class IMAPTest < Test::Unit::TestCase
CA_FILE = File.expand_path("cacert.pem", File.dirname(__FILE__)) CA_FILE = File.expand_path("../fixtures/cacert.pem", __dir__)
SERVER_KEY = File.expand_path("server.key", File.dirname(__FILE__)) SERVER_KEY = File.expand_path("../fixtures/server.key", __dir__)
SERVER_CERT = File.expand_path("server.crt", File.dirname(__FILE__)) SERVER_CERT = File.expand_path("../fixtures/server.crt", __dir__)
SERVER_ADDR = "127.0.0.1" SERVER_ADDR = "127.0.0.1"

View file

@ -5,9 +5,9 @@ require 'test/unit'
module Net module Net
class TestSMTP < Test::Unit::TestCase class TestSMTP < Test::Unit::TestCase
CA_FILE = File.expand_path("../imap/cacert.pem", __dir__) CA_FILE = File.expand_path("../fixtures/cacert.pem", __dir__)
SERVER_KEY = File.expand_path("../imap/server.key", __dir__) SERVER_KEY = File.expand_path("../fixtures/server.key", __dir__)
SERVER_CERT = File.expand_path("../imap/server.crt", __dir__) SERVER_CERT = File.expand_path("../fixtures/server.crt", __dir__)
class FakeSocket class FakeSocket
attr_reader :write_io attr_reader :write_io