summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
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 ef1248b19c..a060eab793 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 ad6be23063..eb89db0144 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