Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/env/each_key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@

# https://bugs.ruby-lang.org/issues/20958
platform_is :windows do
ruby_version_is ""..."4.1" do
ruby_version_is ""..."3.4.11" do
it "returns keys in the locale encoding" do
ENV.each_key do |key|
key.encoding.should == Encoding.find('locale')
end
end
end

ruby_version_is "4.1" do
ruby_version_is "3.4.11" do
it "returns the keys in UTF-8" do
ENV.each_key do |key|
key.encoding.should == Encoding::UTF_8
Expand Down
4 changes: 2 additions & 2 deletions core/env/keys_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

# https://bugs.ruby-lang.org/issues/20958
platform_is :windows do
ruby_version_is ""..."4.1" do
ruby_version_is ""..."3.4.11" do
it "returns the keys in the locale encoding" do
ENV.keys.each do |key|
key.encoding.should == Encoding.find('locale')
end
end
end

ruby_version_is "4.1" do
ruby_version_is "3.4.11" do
it "returns the keys in UTF-8" do
ENV.keys.each do |key|
key.encoding.should == Encoding::UTF_8
Expand Down