summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/closed_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/closed_spec.rb')
-rw-r--r--spec/ruby/library/stringio/closed_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/stringio/closed_spec.rb b/spec/ruby/library/stringio/closed_spec.rb
index ca8a2232a8..647fe445da 100644
--- a/spec/ruby/library/stringio/closed_spec.rb
+++ b/spec/ruby/library/stringio/closed_spec.rb
@@ -3,14 +3,14 @@ require_relative 'fixtures/classes'
describe "StringIO#closed?" do
it "returns true if self is completely closed" do
- io = StringIO.new("example", "r+")
+ io = StringIO.new(+"example", "r+")
io.close_read
- io.closed?.should be_false
+ io.closed?.should == false
io.close_write
- io.closed?.should be_true
+ io.closed?.should == true
- io = StringIO.new("example", "r+")
+ io = StringIO.new(+"example", "r+")
io.close
- io.closed?.should be_true
+ io.closed?.should == true
end
end