summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/eof_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/eof_spec.rb')
-rw-r--r--spec/ruby/core/io/eof_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/io/eof_spec.rb b/spec/ruby/core/io/eof_spec.rb
index 315345d942..b4850df437 100644
--- a/spec/ruby/core/io/eof_spec.rb
+++ b/spec/ruby/core/io/eof_spec.rb
@@ -76,7 +76,7 @@ describe "IO#eof?" do
end
it "returns true on one-byte stream after single-byte read" do
- File.open(File.dirname(__FILE__) + '/fixtures/one_byte.txt') { |one_byte|
+ File.open(__dir__ + '/fixtures/one_byte.txt') { |one_byte|
one_byte.read(1)
one_byte.should.eof?
}