spec/celluloid/zmq/socket_spec.rb in celluloid-zmq-0.16.0 vs spec/celluloid/zmq/socket_spec.rb in celluloid-zmq-0.16.1
- old
+ new
@@ -1,15 +1,15 @@
-require 'spec_helper'
require 'celluloid/rspec'
-describe Celluloid::ZMQ::Socket, actor_system: :global do
+RSpec.describe Celluloid::ZMQ::Socket, actor_system: :global do
it "allows setting and getting ZMQ options on the socket" do
socket = Celluloid::ZMQ::RepSocket.new
socket.set(::ZMQ::IDENTITY, "Identity")
identity = socket.get(::ZMQ::IDENTITY)
- identity.should == "Identity"
+ expect(identity).to eq("Identity")
+ socket.close
end
end