summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/ancillarydata/data_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/ancillarydata/data_spec.rb')
-rw-r--r--spec/ruby/library/socket/ancillarydata/data_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/library/socket/ancillarydata/data_spec.rb b/spec/ruby/library/socket/ancillarydata/data_spec.rb
new file mode 100644
index 0000000000..5a1a446dd5
--- /dev/null
+++ b/spec/ruby/library/socket/ancillarydata/data_spec.rb
@@ -0,0 +1,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
n title='2016-04-11 11:50:00 +0000'>2016-04-11Update dependencies.akr 2014-12-19Update dependencies.akr 2014-11-21Update dependency.akr 2014-11-15Mark auogenerated part.akr 2014-11-15* common.mk: Remove comments in Dependency lines.akr 2014-11-15* tool/update-deps: Extend to fix dependencies.akr 2013-04-13* lib/mkmf.rb: Add ruby/ruby.h, ruby/missing.h, ruby/intern.h,akr 2012-05-01* revert r35510 and r35511 which caused removing the headers everytime.nobu 2012-05-01depends on ext/openssl/deprecation.rbnobu 2006-10-05* ext/digest/digest.[ch]: Since the argument order ofknu