summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 16:22:21 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 16:22:21 +0000
commit2dca35b9b125f0ce5cfc74f5871b26913364cc7f (patch)
tree461f9e2de7d0a47070f515cc1029a1279aade214 /spec/ruby/command_line
parent58689fa7474a8151630eae463b8053e7b24d158d (diff)
Update to ruby/spec@007e908
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/dash_upper_k_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/ruby/command_line/dash_upper_k_spec.rb b/spec/ruby/command_line/dash_upper_k_spec.rb
index d7e16d6edec..ef1248b19cb 100644
--- a/spec/ruby/command_line/dash_upper_k_spec.rb
+++ b/spec/ruby/command_line/dash_upper_k_spec.rb
@@ -57,10 +57,9 @@ describe 'The -K command line option' do
end
end
- platform_is_not :windows do
- it "ignores unknown codes" do
- ruby_exe(@test_string, options: '-KZ').should ==
- [Encoding::UTF_8.name, Encoding::UTF_8.name, nil].inspect
- end
+ it "ignores unknown codes" do
+ locale = Encoding.find('locale')
+ ruby_exe(@test_string, options: '-KZ').should ==
+ [Encoding::UTF_8.name, locale.name, nil].inspect
end
end