merge revision(s) ec14861f0d:

Update to ruby/spec@7e680fa

	---
	 spec/ruby/core/dir/home_spec.rb      | 5 +++--
	 spec/ruby/core/process/spawn_spec.rb | 2 +-
	 2 files changed, 4 insertions(+), 3 deletions(-)
This commit is contained in:
nagachika 2023-06-25 12:37:14 +09:00
parent e3d10dedf1
commit 0c00fb5d92
3 changed files with 5 additions and 4 deletions

View file

@ -33,7 +33,7 @@ describe "Dir.home" do
end end
platform_is :windows do 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 it "returns the home directory with forward slashs and as UTF-8" do
ENV['HOME'] = "C:\\rubyspäc\\home" ENV['HOME'] = "C:\\rubyspäc\\home"
home = Dir.home home = Dir.home
@ -50,7 +50,8 @@ describe "Dir.home" do
ENV['HOMEPATH'] = "\\rubyspec\\home1" ENV['HOMEPATH'] = "\\rubyspec\\home1"
Dir.home.should == "C:/rubyspec/home1" Dir.home.should == "C:/rubyspec/home1"
ENV['USERPROFILE'] = "C:\\rubyspec\\home2" 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" ENV['HOME'] = "C:\\rubyspec\\home3"
Dir.home.should == "C:/rubyspec/home3" Dir.home.should == "C:/rubyspec/home3"
ensure ensure

View file

@ -482,7 +482,7 @@ describe "Process.spawn" do
-> do -> do
wrapped_io = mock('wrapped IO') wrapped_io = mock('wrapped IO')
wrapped_io.should_receive(:to_io).and_return(file) 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.should output_to_fd("Hello World\n", file)
end end
end end

View file

@ -11,7 +11,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 2 #define RUBY_VERSION_TEENY 2
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define RUBY_PATCHLEVEL 57 #define RUBY_PATCHLEVEL 58
#include "ruby/version.h" #include "ruby/version.h"
#include "ruby/internal/abi.h" #include "ruby/internal/abi.h"