summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/sync_spec.rb
blob: e717a5697b18cefa07a647a44c6f82e879c8b7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require_relative '../../spec_helper'
require_relative 'fixtures/classes'

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