summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/udpsocket/open_spec.rb
blob: e4dbb2ee2abcc6c0ce10dd6808c20790aff2b256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative '../spec_helper'
require_relative '../fixtures/classes'

describe "UDPSocket.open" do
  after :each do
    @socket.close if @socket && !@socket.closed?
  end

  it "allows calls to open without arguments" do
    @socket = UDPSocket.open
    @socket.should be_kind_of(UDPSocket)
  end
end