diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-11-30 21:26:52 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-11-30 21:26:52 +0100 |
commit | 1243255c3a36433041012b6107a5ac48658a0895 (patch) | |
tree | 04440f84b48999ff08d4a2a16d066d0ad731400e /spec/ruby/library/scanf | |
parent | ab8345271eb87ff155d8bd5f22f53a4cf2902c26 (diff) |
Update to ruby/spec@4eec3dc
Diffstat (limited to 'spec/ruby/library/scanf')
-rw-r--r-- | spec/ruby/library/scanf/io/scanf_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/scanf/io/shared/block_scanf.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/scanf/io/scanf_spec.rb b/spec/ruby/library/scanf/io/scanf_spec.rb index 6a1fd66780..6a3e6d0d1a 100644 --- a/spec/ruby/library/scanf/io/scanf_spec.rb +++ b/spec/ruby/library/scanf/io/scanf_spec.rb @@ -6,8 +6,8 @@ ruby_version_is ''...'2.7' do describe "IO#scanf" do before :each do - @hw = File.open(fixture(__FILE__, 'helloworld.txt'), 'r') - @data = File.open(fixture(__FILE__, 'date.txt'), 'r') + @hw = File.open(fixture(__FILE__, 'helloworld.txt'), 'rb') + @data = File.open(fixture(__FILE__, 'date.txt'), 'rb') end after :each do diff --git a/spec/ruby/library/scanf/io/shared/block_scanf.rb b/spec/ruby/library/scanf/io/shared/block_scanf.rb index 2031f4c2b7..d938f43734 100644 --- a/spec/ruby/library/scanf/io/shared/block_scanf.rb +++ b/spec/ruby/library/scanf/io/shared/block_scanf.rb @@ -2,7 +2,7 @@ require 'scanf' describe :scanf_io_block_scanf, shared: true do before :each do - @data = File.open(fixture(__FILE__, 'date.txt'), 'r') + @data = File.open(fixture(__FILE__, 'date.txt'), 'rb') end after :each do |