summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/closed_read_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/closed_read_spec.rb')
-rw-r--r--spec/ruby/library/stringio/closed_read_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/stringio/closed_read_spec.rb b/spec/ruby/library/stringio/closed_read_spec.rb
index cb4267ac98..2e3813b1bc 100644
--- a/spec/ruby/library/stringio/closed_read_spec.rb
+++ b/spec/ruby/library/stringio/closed_read_spec.rb
@@ -3,10 +3,10 @@ require_relative 'fixtures/classes'
describe "StringIO#closed_read?" do
it "returns true if self is not readable" do
- io = StringIO.new("example", "r+")
+ io = StringIO.new(+"example", "r+")
io.close_write
- io.closed_read?.should be_false
+ io.closed_read?.should == false
io.close_read
- io.closed_read?.should be_true
+ io.closed_read?.should == true
end
end