spec/celluloid/io/ssl_server_spec.rb in celluloid-io-0.17.1 vs spec/celluloid/io/ssl_server_spec.rb in celluloid-io-0.17.2
- old
+ new
@@ -1,17 +1,17 @@
-require 'spec_helper'
+require "spec_helper"
-describe Celluloid::IO::SSLServer do
+RSpec.describe Celluloid::IO::SSLServer, library: :IO do
let(:client_cert) { OpenSSL::X509::Certificate.new fixture_dir.join("client.crt").read }
let(:client_key) { OpenSSL::PKey::RSA.new fixture_dir.join("client.key").read }
let(:client_context) do
OpenSSL::SSL::SSLContext.new.tap do |context|
context.cert = client_cert
context.key = client_key
end
end
-
+
let(:example_port) { assign_port }
let(:server_cert) { OpenSSL::X509::Certificate.new fixture_dir.join("server.crt").read }
let(:server_key) { OpenSSL::PKey::RSA.new fixture_dir.join("server.key").read }
let(:server_context) do
OpenSSL::SSL::SSLContext.new.tap do |context|
@@ -19,11 +19,11 @@
context.key = server_key
end
end
describe "#accept" do
- let(:payload) { 'ohai' }
+ let(:payload) { "ohai" }
context "inside Celluloid::IO" do
it "should be evented" do
with_ssl_server(example_port) do |subject|
expect(within_io_actor { Celluloid::IO.evented? }).to be_truthy
@@ -87,6 +87,5 @@
ensure
server.close
end
end
end
-