spec/kamerling/server/tcp_spec.rb in kamerling-0.0.1 vs spec/kamerling/server/tcp_spec.rb in kamerling-0.0.2
- old
+ new
@@ -28,10 +28,10 @@
end
it 'doesn’t blow up on unknown inputs' do
server = Server::TCP.new addr: addr, handler: handler = fake(:handler)
server.start
- stub(handler).handle('foo', any(Addr)) { raise Handler::UnknownInput }
+ stub(handler).handle('foo', any(Addr)) { fail Handler::UnknownInput }
TCPSocket.open(*server.addr) { |socket| socket << 'foo' }
server.stop
end
end