summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-06-27 21:02:36 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-06-27 21:02:36 +0200
commitd80e44deec77678fe2d72f94c17b2409b3e794d5 (patch)
tree612bf2313550e0982dda452f48492cc069e1c21a /spec/ruby/command_line
parentc940397116c5aef76b1c0d05561c11d43ef596a7 (diff)
Update to ruby/spec@8d74d49
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/dash_upper_k_spec.rb16
-rw-r--r--spec/ruby/command_line/dash_x_spec.rb2
2 files changed, 8 insertions, 10 deletions
diff --git a/spec/ruby/command_line/dash_upper_k_spec.rb b/spec/ruby/command_line/dash_upper_k_spec.rb
index ef1248b19cb..a060eab7934 100644
--- a/spec/ruby/command_line/dash_upper_k_spec.rb
+++ b/spec/ruby/command_line/dash_upper_k_spec.rb
@@ -6,24 +6,24 @@ describe 'The -K command line option' do
end
describe 'sets __ENCODING__ and Encoding.default_external' do
- it "to Encoding::ASCII_8BIT with -Ka" do
+ it "to Encoding::BINARY with -Ka" do
ruby_exe(@test_string, options: '-Ka').should ==
- [Encoding::ASCII_8BIT.name, Encoding::ASCII_8BIT.name, nil].inspect
+ [Encoding::BINARY.name, Encoding::BINARY.name, nil].inspect
end
- it "to Encoding::ASCII_8BIT with -KA" do
+ it "to Encoding::BINARY with -KA" do
ruby_exe(@test_string, options: '-KA').should ==
- [Encoding::ASCII_8BIT.name, Encoding::ASCII_8BIT.name, nil].inspect
+ [Encoding::BINARY.name, Encoding::BINARY.name, nil].inspect
end
- it "to Encoding::ASCII_8BIT with -Kn" do
+ it "to Encoding::BINARY with -Kn" do
ruby_exe(@test_string, options: '-Kn').should ==
- [Encoding::ASCII_8BIT.name, Encoding::ASCII_8BIT.name, nil].inspect
+ [Encoding::BINARY.name, Encoding::BINARY.name, nil].inspect
end
- it "to Encoding::ASCII_8BIT with -KN" do
+ it "to Encoding::BINARY with -KN" do
ruby_exe(@test_string, options: '-KN').should ==
- [Encoding::ASCII_8BIT.name, Encoding::ASCII_8BIT.name, nil].inspect
+ [Encoding::BINARY.name, Encoding::BINARY.name, nil].inspect
end
it "to Encoding::EUC_JP with -Ke" do
diff --git a/spec/ruby/command_line/dash_x_spec.rb b/spec/ruby/command_line/dash_x_spec.rb
index ad6be23063b..eb89db01443 100644
--- a/spec/ruby/command_line/dash_x_spec.rb
+++ b/spec/ruby/command_line/dash_x_spec.rb
@@ -18,6 +18,4 @@ describe "The -x command line option" do
result = ruby_exe(embedded_ruby)
result.should == "success\n"
end
-
- it "needs to be reviewed for spec completeness"
end