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

with_feature :ancillary_data do
  describe 'Socket::AncillaryData#data' do
    it 'returns the data as a String' do
      Socket::AncillaryData.new(:INET, :SOCKET, :RIGHTS, 'ugh').data.should == 'ugh'
    end
  end
end