aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/stringio/fileno_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/fileno_spec.rb')
-rw-r--r--spec/ruby/library/stringio/fileno_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/library/stringio/fileno_spec.rb b/spec/ruby/library/stringio/fileno_spec.rb
new file mode 100644
index 0000000000..a5ae820830
--- /dev/null
+++ b/spec/ruby/library/stringio/fileno_spec.rb
@@ -0,0 +1,9 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
+require File.expand_path('../shared/each', __FILE__)
+
+describe "StringIO#fileno" do
+ it "returns nil" do
+ StringIO.new("nuffin").fileno.should be_nil
+ end
+end