Skip to content

Commit

Permalink
Spec the default values of IO#sync for standard streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 11, 2016
1 parent 7753d2f commit 70b1140
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/io/sync_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,17 @@
lambda { IOSpecs.closed_io.sync }.should raise_error(IOError)
end
end

describe "IO#sync" do
it "is false by default for STDIN" do
STDIN.sync.should == false
end

it "is false by default for STDOUT" do
STDOUT.sync.should == false
end

it "is true by default for STDERR" do
STDERR.sync.should == true
end
end

0 comments on commit 70b1140

Please sign in to comment.