summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/ancillarydata/family_spec.rb
blob: 975f0d253869a18da4d81572a67cd526a79a7df1 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../spec_helper'

with_feature :ancillary_data do
  describe 'Socket::AncillaryData#family' do
    it 'returns the family as an Integer' do
      Socket::AncillaryData.new(:INET, :SOCKET, :RIGHTS, '').family.should == Socket::AF_INET
    end
  end
end