summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/closed_write_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/closed_write_spec.rb')
-rw-r--r--spec/ruby/library/stringio/closed_write_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/stringio/closed_write_spec.rb b/spec/ruby/library/stringio/closed_write_spec.rb
index 52707aa240..339691cd82 100644
--- a/spec/ruby/library/stringio/closed_write_spec.rb
+++ b/spec/ruby/library/stringio/closed_write_spec.rb
@@ -1,12 +1,12 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/classes'
describe "StringIO#closed_write?" do
it "returns true if self is not writable" do
- io = StringIO.new("example", "r+")
+ io = StringIO.new(+"example", "r+")
io.close_read
- io.closed_write?.should be_false
+ io.closed_write?.should == false
io.close_write
- io.closed_write?.should be_true
+ io.closed_write?.should == true
end
end