summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/length_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/length_spec.rb')
-rw-r--r--spec/ruby/library/stringio/length_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/ruby/library/stringio/length_spec.rb b/spec/ruby/library/stringio/length_spec.rb
index d3070f50a7..a83be6256a 100644
--- a/spec/ruby/library/stringio/length_spec.rb
+++ b/spec/ruby/library/stringio/length_spec.rb
@@ -1,7 +1,8 @@
require_relative '../../spec_helper'
-require_relative 'fixtures/classes'
-require_relative 'shared/length'
+require 'stringio'
describe "StringIO#length" do
- it_behaves_like :stringio_length, :length
+ it "returns the length of the wrapped string" do
+ StringIO.new("example").length.should == 7
+ end
end