summaryrefslogtreecommitdiff
path: root/spec/ruby/core/argf/fixtures/filename.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/argf/fixtures/filename.rb')
-rw-r--r--spec/ruby/core/argf/fixtures/filename.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/ruby/core/argf/fixtures/filename.rb b/spec/ruby/core/argf/fixtures/filename.rb
new file mode 100644
index 0000000000..599c97dd57
--- /dev/null
+++ b/spec/ruby/core/argf/fixtures/filename.rb
@@ -0,0 +1,3 @@
+puts $FILENAME while ARGF.gets
+# returns last current file even when closed
+puts $FILENAME