diff options
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 |