diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-01-05 20:23:57 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-01-05 20:23:57 +0100 |
commit | ec14861f0d7a1e99d3e6667dee2f4c9cc426d5f3 (patch) | |
tree | b25b88805a2fba8ddf3b01ffede2c4a4f74e1b0a /spec | |
parent | 1fb0255962e7420c5ab9e0b7a221e5c220f32700 (diff) | |
download | ruby-ec14861f0d7a1e99d3e6667dee2f4c9cc426d5f3.tar.gz |
Update to ruby/spec@7e680fa
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/dir/home_spec.rb | 5 | ||||
-rw-r--r-- | spec/ruby/core/process/spawn_spec.rb | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/ruby/core/dir/home_spec.rb b/spec/ruby/core/dir/home_spec.rb index 95bb00ad03..bbe347ba9e 100644 --- a/spec/ruby/core/dir/home_spec.rb +++ b/spec/ruby/core/dir/home_spec.rb @@ -33,7 +33,7 @@ describe "Dir.home" do end platform_is :windows do - ruby_version_is "3.0" do + ruby_version_is "3.2" do it "returns the home directory with forward slashs and as UTF-8" do ENV['HOME'] = "C:\\rubyspäc\\home" home = Dir.home @@ -50,7 +50,8 @@ describe "Dir.home" do ENV['HOMEPATH'] = "\\rubyspec\\home1" Dir.home.should == "C:/rubyspec/home1" ENV['USERPROFILE'] = "C:\\rubyspec\\home2" - Dir.home.should == "C:/rubyspec/home2" + # https://bugs.ruby-lang.org/issues/19244 + # Dir.home.should == "C:/rubyspec/home2" ENV['HOME'] = "C:\\rubyspec\\home3" Dir.home.should == "C:/rubyspec/home3" ensure diff --git a/spec/ruby/core/process/spawn_spec.rb b/spec/ruby/core/process/spawn_spec.rb index 7a280ccdf4..c8a58c4d04 100644 --- a/spec/ruby/core/process/spawn_spec.rb +++ b/spec/ruby/core/process/spawn_spec.rb @@ -482,7 +482,7 @@ describe "Process.spawn" do -> do wrapped_io = mock('wrapped IO') wrapped_io.should_receive(:to_io).and_return(file) - Process.wait Process.spawn('echo "Hello World"', out: wrapped_io) + Process.wait Process.spawn('echo Hello World', out: wrapped_io) end.should output_to_fd("Hello World\n", file) end end |