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

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