Sha256: a82027344280a1db3487ee5344a0e84c3b909a865c4f3c90bd93ade386c05536

Contents?: true

Size: 343 Bytes

Versions: 7

Compression:

Stored size: 343 Bytes

Contents

require File.expand_path('../fixtures/classes', __FILE__)

describe "StringIO#sync" do
  it "returns true" do
    StringIO.new('').sync.should be_true
  end
end

describe "StringIO#sync=" do
  before(:each) do
    @io = StringIO.new('')
  end

  it "does not change 'sync' status" do
    @io.sync = false
    @io.sync.should be_true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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