diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-28 23:20:11 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-28 23:20:11 +0200 |
commit | 79671ec57e59091260a0bc3d40a31d31d9c72a94 (patch) | |
tree | 2f59a8727b8f63f9e79d50352fa4f78a7cc00234 /spec/ruby/core/io/fixtures | |
parent | 994833085ae06afbe94d30ab183d80e0234fbe14 (diff) |
Update to ruby/spec@7de852d
Diffstat (limited to 'spec/ruby/core/io/fixtures')
-rw-r--r-- | spec/ruby/core/io/fixtures/classes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/fixtures/classes.rb b/spec/ruby/core/io/fixtures/classes.rb index a771e3d929..460dd62387 100644 --- a/spec/ruby/core/io/fixtures/classes.rb +++ b/spec/ruby/core/io/fixtures/classes.rb @@ -118,10 +118,10 @@ module IOSpecs # Creates an IO instance for an existing fixture file. The # file should obviously not be deleted. - def self.io_fixture(name, options_or_mode="r:utf-8") + def self.io_fixture(name, mode = "r:utf-8") path = fixture __FILE__, name name = path if File.exist? path - new_io name, options_or_mode + new_io(name, mode) end # Returns a closed instance of IO that was opened to reference |