summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/socket/udpsocket/open_spec.rb
blob: 188f879ed18cb436691dfcaa03db3404d84713dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)

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