Sha256: f1a979061966d57a906b16aa7ea0d0e0f243ad4be64809261585312ee82b2cd8

Contents?: true

Size: 894 Bytes

Versions: 7

Compression:

Stored size: 894 Bytes

Contents

require "stringio"
require File.expand_path('../shared/read', __FILE__)
require File.expand_path('../shared/sysread', __FILE__)

ruby_version_is "1.9" do
  describe "StringIO#readpartial when passed length, buffer" do
    it_behaves_like :stringio_read, :readpartial
  end

  describe "StringIO#readpartial when passed length" do
    it_behaves_like :stringio_read_length, :readpartial
  end

  describe "StringIO#readpartial when passed no arguments" do
    it_behaves_like :stringio_read_no_arguments, :readpartial
  end

  describe "StringIO#readpartial when self is not readable" do
    it_behaves_like :stringio_read_not_readable, :readpartial
  end

  describe "StringIO#readpartial when passed nil" do
    it_behaves_like :stringio_read_nil, :readpartial
  end

  describe "StringIO#readpartial when passed length" do
    it_behaves_like :stringio_sysread_length, :readpartial
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysl-stringio-2.3 spec/readpartial_spec.rb
rubysl-stringio-2.2 spec/readpartial_spec.rb
rubysl-stringio-2.1 spec/readpartial_spec.rb
rubysl-stringio-2.1.0 spec/readpartial_spec.rb
rubysl-stringio-1.0.1 spec/readpartial_spec.rb
rubysl-stringio-1.0.0 spec/readpartial_spec.rb
rubysl-stringio-2.0.0 spec/readpartial_spec.rb